Implemented TLS for all platforms.

This commit is contained in:
Camilla Berglund
2012-08-13 16:03:44 +02:00
parent c594bb4689
commit 18a5aba8f1
5 changed files with 67 additions and 7 deletions
+5
View File
@@ -103,6 +103,9 @@ int _glfwPlatformInit(void)
_glfwInitJoysticks();
if (!_glfwInitOpenGL())
return GL_FALSE;
_glfwLibrary.NS.eventSource = CGEventSourceCreate(kCGEventSourceStateHIDSystemState);
if (!_glfwLibrary.NS.eventSource)
return GL_FALSE;
@@ -143,6 +146,8 @@ int _glfwPlatformTerminate(void)
_glfwTerminateJoysticks();
_glfwTerminateOpenGL();
return GL_TRUE;
}