changeset 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 c4150600b3ae
files src/video/SDL_renderer_sw.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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