[Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.61,1.62
Max Horn
fingolfin at users.sourceforge.net
Tue Jun 17 08:49:34 CEST 2003
Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1:/tmp/cvs-serv23101
Modified Files:
sdl-common.cpp
Log Message:
temporary & nasty workaround for crash-on-exit in OS X + SDL/GL backend
Index: sdl-common.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.cpp,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- sdl-common.cpp 17 Jun 2003 06:13:57 -0000 1.61
+++ sdl-common.cpp 17 Jun 2003 15:33:17 -0000 1.62
@@ -115,7 +115,11 @@
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 @@
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);
}
More information about the Scummvm-git-logs
mailing list