mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 02:38:52 -05:00
Avoid mode re-enumeration.
This commit is contained in:
parent
bfb7b053c2
commit
f4387139e0
|
@ -340,8 +340,11 @@ GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* handle, int* count)
|
|||
|
||||
_GLFW_REQUIRE_INIT_OR_RETURN(NULL);
|
||||
|
||||
if (!refreshVideoModes(monitor))
|
||||
return GL_FALSE;
|
||||
if (monitor->modes == NULL)
|
||||
{
|
||||
if (!refreshVideoModes(monitor))
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
*count = monitor->modeCount;
|
||||
return monitor->modes;
|
||||
|
|
Loading…
Reference in New Issue
Block a user