Fixed bug 1412 - Patch - Software renderer crash

Dimitris Zenios Date: 2012-02-06 15:12:37 GMT

Hi gus there is a bug when using software renderer and the window
surface gets destroyed (Fullscreen and back).The solution is easy
This commit is contained in:
Sam Lantinga 2012-02-07 19:34:24 -05:00
parent 3e4b380d2c
commit 6552e51a2b

View file

@ -183,6 +183,7 @@ SW_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) {
data->surface = NULL;
data->window = NULL;
}
}