# HG changeset patch # User Sam Lantinga # Date 1229921563 0 # Node ID d214e791c77c5e87e5acd4584b6d87191c1e325e # Parent fa81cc1ef3d0b71ece496dd66bff216177511623 Fixed crash when resizing the window with the software renderer. This is similar to the crash fix in the OpenGL renderer in revision 4187 diff -r fa81cc1ef3d0 -r d214e791c77c 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