We've already crashed by this point if we don't have a renderer. The calling code should check this.
authorSam Lantinga <slouken@libsdl.org>
Sat, 21 Jan 2012 18:30:50 -0500
changeset 6242 096d2698cc27
parent 6241 5051407a46d3
child 6243 853997de7768
We've already crashed by this point if we don't have a renderer. The calling code should check this.
src/render/direct3d/SDL_render_d3d.c
--- a/src/render/direct3d/SDL_render_d3d.c	Sat Jan 21 12:10:14 2012 -0500
+++ b/src/render/direct3d/SDL_render_d3d.c	Sat Jan 21 18:30:50 2012 -0500
@@ -576,7 +576,6 @@
     D3DMATRIX matrix;
     HRESULT result;
 
-    if (!renderer) return -1;
     D3D_ActivateRenderer(renderer);
 
     if (data->NumSimultaneousRTs < 2) {