From d5d61a5e053205c9c6bdfbd1401ff7bfced88540 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 17 Jun 2003 16:06:17 +0000 Subject: [PATCH] Missed one svn-id: r8536 --- backends/sdl/sdl_gl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backends/sdl/sdl_gl.cpp b/backends/sdl/sdl_gl.cpp index e831d1d3380..ead5e92e8e7 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;