diff --git a/src/init.c b/src/init.c index d83c19ee..ebdbbf33 100644 --- a/src/init.c +++ b/src/init.c @@ -35,16 +35,6 @@ #include -//======================================================================== -// Terminate GLFW when exiting application -//======================================================================== - -static void glfw_atexit(void) -{ - glfwTerminate(); -} - - ////////////////////////////////////////////////////////////////////////// ////// GLFW internal API ////// ////////////////////////////////////////////////////////////////////////// @@ -125,7 +115,7 @@ GLFWAPI int glfwInitWithModels(GLFWthreadmodel* threading, GLFWallocator* alloca return GL_FALSE; } - atexit(glfw_atexit); + atexit(glfwTerminate); _glfwInitialized = GL_TRUE;