Removed check for whether context is current.
The GLFW TLS slot will be out of sync if an outside source makes another context current. Fixes #487.
This commit is contained in:
parent
2fbd948a67
commit
a21f586c3b
@ -530,9 +530,6 @@ GLFWAPI void glfwMakeContextCurrent(GLFWwindow* handle)
|
|||||||
|
|
||||||
_GLFW_REQUIRE_INIT();
|
_GLFW_REQUIRE_INIT();
|
||||||
|
|
||||||
if (_glfwPlatformGetCurrentContext() == window)
|
|
||||||
return;
|
|
||||||
|
|
||||||
_glfwPlatformMakeContextCurrent(window);
|
_glfwPlatformMakeContextCurrent(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user