Fixed crash when resizing the window with the software renderer.
authorSam Lantinga <slouken@libsdl.org>
Mon, 22 Dec 2008 04:52:43 +0000
changeset 2905 d214e791c77c
parent 2904 fa81cc1ef3d0
child 2906 c4150600b3ae
Fixed crash when resizing the window with the software renderer. This is similar to the crash fix in the OpenGL renderer in revision 4187
src/video/SDL_renderer_sw.c
--- a/src/video/SDL_renderer_sw.c	Sun Dec 21 20:17:41 2008 +0000
+++ b/src/video/SDL_renderer_sw.c	Mon Dec 22 04:52:43 2008 +0000
@@ -360,8 +360,9 @@
             return -1;
         }
     }
+    /* Rebind the context to the window area */
     data->updateSize = SDL_TRUE;
-    return 0;
+    return SW_ActivateRenderer(renderer);
 }
 
 static int