mirror of
https://github.com/glfw/glfw.git
synced 2026-09-17 22:32:50 +00:00
Cleanup
This commit is contained in:
+2
-2
@@ -576,11 +576,11 @@ GLFWAPI void glfwMakeContextCurrent(GLFWwindow* handle)
|
||||
if (previous)
|
||||
{
|
||||
if (!window || window->context.source != previous->context.source)
|
||||
previous->context.makeContextCurrent(NULL);
|
||||
previous->context.makeCurrent(NULL);
|
||||
}
|
||||
|
||||
if (window)
|
||||
window->context.makeContextCurrent(window);
|
||||
window->context.makeCurrent(window);
|
||||
}
|
||||
|
||||
GLFWAPI GLFWwindow* glfwGetCurrentContext(void)
|
||||
|
||||
Reference in New Issue
Block a user