mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 15:23:17 +01:00
Added current window check to glfwSwapBuffers.
This commit is contained in:
@@ -868,6 +868,12 @@ GLFWAPI void glfwSwapInterval(int interval)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_glfwLibrary.currentWindow)
|
||||
{
|
||||
_glfwSetError(GLFW_NO_CURRENT_WINDOW);
|
||||
return;
|
||||
}
|
||||
|
||||
_glfwPlatformSwapInterval(interval);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user