From f80799cd5be7489fb4ab3fbb7fc55ecac25d1a6d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 15 Jun 2007 21:21:42 +0000 Subject: Fix for bug #1690813: BASS: Crash when changing scalers during intro svn-id: r27435 --- backends/platform/sdl/graphics.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backends/platform/sdl') diff --git a/backends/platform/sdl/graphics.cpp b/backends/platform/sdl/graphics.cpp index 212eb43585..e0b7de28ab 100644 --- a/backends/platform/sdl/graphics.cpp +++ b/backends/platform/sdl/graphics.cpp @@ -1597,6 +1597,8 @@ void OSystem_SDL::displayMessageOnOSD(const char *msg) { assert (_transactionMode == kTransactionNone); assert(msg); + Common::StackLock lock(_graphicsMutex); // Lock the mutex until this function ends + uint i; // Lock the OSD surface for drawing -- cgit v1.2.3