mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 00:30:57 +00:00
Monitor enumeration fixes.
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ GLFWAPI int glfwInit(void)
|
||||
}
|
||||
|
||||
_glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount);
|
||||
if (_glfw.monitors == NULL || _glfw.monitorCount == 0)
|
||||
if (_glfw.monitors == NULL)
|
||||
{
|
||||
_glfwErrorCallback(GLFW_PLATFORM_ERROR, "No monitors found");
|
||||
_glfwPlatformTerminate();
|
||||
|
||||
Reference in New Issue
Block a user