mirror of
https://github.com/glfw/glfw.git
synced 2026-09-20 16:30:45 +00:00
Merge branch 'master' into multi-monitor
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user