From 3d8268317765dbd4bf2647f54aec21b4e781e698 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 7 Mar 2011 14:13:47 +0100 Subject: [PATCH] Removed indirection made superfluous by introduction of cdecl. --- src/init.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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;