Removed registering glfwTerminate with atexit.

Functions registered with atexit are called from the thread calling exit.
glfwTerminate should only be called from the main thread.  Mistakes should be
explicit.
This commit is contained in:
Camilla Berglund
2012-10-22 03:20:16 +02:00
parent 5df4df6ca4
commit d68acb78bf
13 changed files with 40 additions and 4 deletions

View File

@@ -127,8 +127,6 @@ GLFWAPI int glfwInit(void)
return GL_FALSE;
}
atexit(glfwTerminate);
_glfwInitialized = GL_TRUE;
// Not all window hints have zero as their default value