diff options
author | Max Horn | 2003-06-17 15:33:17 +0000 |
---|---|---|
committer | Max Horn | 2003-06-17 15:33:17 +0000 |
commit | c7b19406cdb68f103588feec931edecc67471806 (patch) | |
tree | f6617d8fbd2629c02131798063c58bf241247630 /backends | |
parent | 327b63ee96fc6eb650630cbbc74b3ca7eb46ce41 (diff) | |
download | scummvm-rg350-c7b19406cdb68f103588feec931edecc67471806.tar.gz scummvm-rg350-c7b19406cdb68f103588feec931edecc67471806.tar.bz2 scummvm-rg350-c7b19406cdb68f103588feec931edecc67471806.zip |
temporary & nasty workaround for crash-on-exit in OS X + SDL/GL backend
svn-id: r8534
Diffstat (limited to 'backends')
-rw-r--r-- | backends/sdl/sdl-common.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp index 00e695ac2d..1095d4b68f 100644 --- a/backends/sdl/sdl-common.cpp +++ b/backends/sdl/sdl-common.cpp @@ -115,7 +115,11 @@ OSystem_SDL_Common::~OSystem_SDL_Common() { SDL_DestroyMutex(_mutex); SDL_ShowCursor(SDL_ENABLE); +#ifdef MACOSX + // Work around segfault-on-exit with the OpenGL backend on Mac OS X. +#else SDL_Quit(); +#endif } void OSystem_SDL_Common::init_size(uint w, uint h) { @@ -909,7 +913,11 @@ void OSystem_SDL_Common::quit() { unload_gfx_mode(); SDL_ShowCursor(SDL_ENABLE); +#ifdef MACOSX + // Work around segfault-on-exit with the OpenGL backend on Mac OS X. +#else SDL_Quit(); +#endif exit(0); } |