diff --git a/src/monitor.c b/src/monitor.c index 337e57e2..7ec1bba7 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -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;