Moved atexit call to shared code.

This commit is contained in:
Camilla Berglund
2010-09-16 04:11:06 +02:00
parent 1f704a2408
commit 3c85eef0bf
4 changed files with 13 additions and 39 deletions
-12
View File
@@ -178,15 +178,6 @@ static void setUpMenuBar( void )
[NSApp setAppleMenu:appMenu];
}
//========================================================================
// Terminate GLFW when exiting application
//========================================================================
static void glfw_atexit(void)
{
glfwTerminate();
}
//////////////////////////////////////////////////////////////////////////
////// GLFW platform API //////
@@ -213,9 +204,6 @@ int _glfwPlatformInit(void)
[NSApp finishLaunching];
// Install atexit routine
atexit(glfw_atexit);
_glfwPlatformSetTime(0.0);
_glfwLibrary.NS.desktopMode =