Merge branch 'master' into multi-monitor

This commit is contained in:
Camilla Berglund
2012-10-22 02:46:06 +02:00
6 changed files with 30 additions and 16 deletions
+2 -2
View File
@@ -477,8 +477,8 @@ GLFWAPI void glfwDestroyWindow(GLFWwindow handle)
if (window == NULL)
return;
// Clear the current context if this window's context is current
// TODO: Re-examine this in light of multithreading
// The window's context must not be current on another thread when the
// window is destroyed
if (window == _glfwPlatformGetCurrentContext())
_glfwPlatformMakeContextCurrent(NULL);