Initial TLS implementation (Cocoa broken).

This commit is contained in:
Camilla Berglund
2012-08-12 14:13:18 +02:00
parent d0c7a7a2c4
commit 9e4bc36dd8
6 changed files with 78 additions and 20 deletions
+3 -2
View File
@@ -451,8 +451,9 @@ GLFWAPI void glfwDestroyWindow(GLFWwindow handle)
return;
// Clear the current context if this window's context is current
if (window == _glfwLibrary.currentWindow)
glfwMakeContextCurrent(NULL);
// TODO: Re-examine this in light of multithreading
if (window == _glfwPlatformGetCurrentContext())
_glfwPlatformMakeContextCurrent(NULL);
// Clear the active window pointer if this is the active window
if (window == _glfwLibrary.activeWindow)