diff src/video/SDL_renderer_sw.c @ 2905:d214e791c77c

Fixed crash when resizing the window with the software renderer. This is similar to the crash fix in the OpenGL renderer in revision 4187
author Sam Lantinga <slouken@libsdl.org>
date Mon, 22 Dec 2008 04:52:43 +0000
parents fa81cc1ef3d0
children 2133d2d300fd
line wrap: on
line diff
--- 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