mirror of
https://github.com/gwm17/glfw.git
synced 2025-01-30 19:08:51 -05:00
Added current window check to glfwSwapBuffers.
This commit is contained in:
parent
fa5d7488b8
commit
941d737636
|
@ -868,6 +868,12 @@ GLFWAPI void glfwSwapInterval(int interval)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!_glfwLibrary.currentWindow)
|
||||
{
|
||||
_glfwSetError(GLFW_NO_CURRENT_WINDOW);
|
||||
return;
|
||||
}
|
||||
|
||||
_glfwPlatformSwapInterval(interval);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user