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:
parent
3e4b380d2c
commit
6552e51a2b
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue