mirror of
https://github.com/glfw/glfw.git
synced 2025-04-16 10:16:00 +00:00
Added current window check to glfwSwapBuffers.
This commit is contained in:
parent
fa5d7488b8
commit
941d737636
1 changed files with 6 additions and 0 deletions
|
@ -868,6 +868,12 @@ GLFWAPI void glfwSwapInterval(int interval)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!_glfwLibrary.currentWindow)
|
||||
{
|
||||
_glfwSetError(GLFW_NO_CURRENT_WINDOW);
|
||||
return;
|
||||
}
|
||||
|
||||
_glfwPlatformSwapInterval(interval);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue