]> git.jsancho.org Git - lugaru.git/commitdiff
Whoops, broke browser launch code...
authorRyan C. Gordon <icculus@icculus.org>
Fri, 12 Aug 2005 07:42:33 +0000 (07:42 +0000)
committerRyan C. Gordon <icculus@icculus.org>
Fri, 12 Aug 2005 07:42:33 +0000 (07:42 +0000)
Source/OpenGL_Windows.cpp

index 24fcd87d438d3178344cd36115804321db913e89..30b0312670ba367bb8248a17105cc0dc19318be1 100644 (file)
@@ -1302,10 +1302,6 @@ void CleanUp (void)
     //  the context is destroyed and libGL unloaded by SDL_Quit().
     pglDeleteTextures = glDeleteTextures_doNothing;
 
-    #if PLATFORM_LINUX
-    _exit(0);  // !!! FIXME: hack...crashes on exit!
-    #endif
-
 #elif (defined WIN32)
        if (hRC)
        {
@@ -1649,6 +1645,10 @@ int main(int argc, char **argv)
                {
             launch_web_browser("http://www.wolfire.com/registerpc.html");
                }
+
+        #if PLATFORM_LINUX  // (this may not be necessary any more.)
+        _exit(0);  // !!! FIXME: hack...crashes on exit!
+        #endif
                return 0;
        }
        catch (const std::exception& error)