From 7b63e8ae2505897f5c275bf755ef8384b4cb91a4 Mon Sep 17 00:00:00 2001 From: Alejandro Marzini Date: Thu, 10 Jun 2010 03:16:50 +0000 Subject: Made creation of SdlMutexManager earlier than other modules. svn-id: r49555 --- backends/platform/sdl/sdl.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index c662fed2bf..684befa623 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -106,6 +106,12 @@ void OSystem_SDL::initBackend() { // Enable unicode support if possible SDL_EnableUNICODE(1); + // Create and hook up the mutex manager, if none exists yet (we check for + // this to allow subclasses to provide their own). + if (_mutexManager == 0) { + _mutexManager = new SdlMutexManager(); + } + // enable joystick if (joystick_num > -1 && SDL_NumJoysticks() > 0) { printf("Using joystick: %s\n", SDL_JoystickName(0)); @@ -145,12 +151,6 @@ void OSystem_SDL::initBackend() { _timerID = SDL_AddTimer(10, &timer_handler, _timer); } - // Create and hook up the mutex manager, if none exists yet (we check for - // this to allow subclasses to provide their own). - if (_mutexManager == 0) { - _mutexManager = new SdlMutexManager(); - } - // Create and hook up the graphics manager, if none exists yet (we check for // this to allow subclasses to provide their own). if (_graphicsManager == 0) { -- cgit v1.2.3