From ef069f281e0e29eceffcb203801872a88725be76 Mon Sep 17 00:00:00 2001 From: Taylor Richards Date: Sun, 4 May 2003 04:56:53 +0000 Subject: [PATCH] move SDL_Quit to os_deinit to fix fonttool segfault --- src/graphics/gropengl.cpp | 5 +++-- src/osapi/os_unix.cpp | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/graphics/gropengl.cpp b/src/graphics/gropengl.cpp index 3ad6b6a..18114e2 100644 --- a/src/graphics/gropengl.cpp +++ b/src/graphics/gropengl.cpp @@ -15,6 +15,9 @@ * Code that uses the OpenGL graphics library * * $Log$ + * Revision 1.62 2003/05/04 04:56:53 taylor + * move SDL_Quit to os_deinit to fix fonttool segfault + * * Revision 1.61 2003/02/02 21:13:27 relnev * minor updates (made functions static, tried to improve texture sizes) * @@ -2801,8 +2804,6 @@ void gr_opengl_init() exit (1); } - atexit (SDL_Quit); - SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5); SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5); diff --git a/src/osapi/os_unix.cpp b/src/osapi/os_unix.cpp index 6acea68..580d8e3 100644 --- a/src/osapi/os_unix.cpp +++ b/src/osapi/os_unix.cpp @@ -15,6 +15,9 @@ * Low level Windows code * * $Log$ + * Revision 1.13 2003/05/04 04:56:53 taylor + * move SDL_Quit to os_deinit to fix fonttool segfault + * * Revision 1.12 2003/02/20 17:41:07 theoddone33 * Userdir patch from Taylor Richards * @@ -273,6 +276,7 @@ void os_check_debugger() // called at shutdown. Makes sure all thread processing terminates. void os_deinit() { + SDL_Quit(); } extern int SDLtoFS2[SDLK_LAST]; -- 2.39.2