Fixed crash when resizing the window with the software renderer.

This is similar to the crash fix in the OpenGL renderer in revision 4187

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403367
This commit is contained in:
Sam Lantinga 2008-12-22 04:52:43 +00:00
parent 03f292e261
commit 1ebf771a53

View file

@ -360,8 +360,9 @@ SW_DisplayModeChanged(SDL_Renderer * renderer)
return -1;
}
}
/* Rebind the context to the window area */
data->updateSize = SDL_TRUE;
return 0;
return SW_ActivateRenderer(renderer);
}
static int