mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 07:16:52 -05:00
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
a887ff0bac
commit
333943e556
|
|
@ -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…
Reference in New Issue
Block a user