mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Moved atexit call to shared code.
This commit is contained in:
@@ -61,16 +61,6 @@ static void initLibraries(void)
|
||||
}
|
||||
|
||||
|
||||
//========================================================================
|
||||
// Terminate GLFW when exiting application
|
||||
//========================================================================
|
||||
|
||||
static void glfw_atexit(void)
|
||||
{
|
||||
glfwTerminate();
|
||||
}
|
||||
|
||||
|
||||
//========================================================================
|
||||
// Initialize X11 display
|
||||
//========================================================================
|
||||
@@ -197,9 +187,6 @@ int _glfwPlatformInit(void)
|
||||
// Try to load libGL.so if necessary
|
||||
initLibraries();
|
||||
|
||||
// Install atexit() routine
|
||||
atexit(glfw_atexit);
|
||||
|
||||
// Initialize joysticks
|
||||
_glfwInitJoysticks();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user