diff options
author | Travis Howell | 2003-06-17 16:06:17 +0000 |
---|---|---|
committer | Travis Howell | 2003-06-17 16:06:17 +0000 |
commit | d5d61a5e053205c9c6bdfbd1401ff7bfced88540 (patch) | |
tree | 7a0c79e35fc48809a3812d9f129c92901012d5f2 /backends/sdl | |
parent | a09e7a56151de136f221aa87b820d906c977c4ac (diff) | |
download | scummvm-rg350-d5d61a5e053205c9c6bdfbd1401ff7bfced88540.tar.gz scummvm-rg350-d5d61a5e053205c9c6bdfbd1401ff7bfced88540.tar.bz2 scummvm-rg350-d5d61a5e053205c9c6bdfbd1401ff7bfced88540.zip |
Missed one
svn-id: r8536
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/sdl_gl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/sdl/sdl_gl.cpp b/backends/sdl/sdl_gl.cpp index e831d1d338..ead5e92e8e 100644 --- a/backends/sdl/sdl_gl.cpp +++ b/backends/sdl/sdl_gl.cpp @@ -294,6 +294,8 @@ void OSystem_SDL_OpenGL::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; |