mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 00:30:57 +00:00
Moved atexit call to shared code.
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user