We've already crashed by this point if we don't have a renderer. The calling code should check this.

This commit is contained in:
Sam Lantinga 2012-01-21 18:30:50 -05:00
parent d64668508c
commit 301928014c

View file

@ -576,7 +576,6 @@ D3D_SetTargetTexture(SDL_Renderer * renderer, SDL_Texture * texture)
D3DMATRIX matrix;
HRESULT result;
if (!renderer) return -1;
D3D_ActivateRenderer(renderer);
if (data->NumSimultaneousRTs < 2) {