mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 07:07:10 +00:00
fix for the crash in Sky when switching scalers
svn-id: r8067
This commit is contained in:
parent
2aaa13438a
commit
73c7e78f88
@ -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…
Reference in New Issue
Block a user