fix for the crash in Sky when switching scalers
svn-id: r8067
This commit is contained in:
parent
2aaa13438a
commit
73c7e78f88
1 changed files with 2 additions and 0 deletions
|
@ -204,6 +204,8 @@ void OSystem_SDL::hotswap_gfx_mode() {
|
|||
if (!_screen)
|
||||
return;
|
||||
|
||||
StackLock lock(_mutex); // Lock the mutex until this function ends
|
||||
|
||||
// Keep around the old _screen & _tmpscreen so we can restore the screen data
|
||||
// after the mode switch.
|
||||
SDL_Surface *old_screen = _screen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue