diff --git a/src/init.c b/src/init.c index 7e5204aa..e3cdacc2 100644 --- a/src/init.c +++ b/src/init.c @@ -129,7 +129,7 @@ GLFWAPI int glfwInit(void) } _glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount); - if (_glfw.monitors == NULL) + if (!_glfw.monitorCount) { _glfwInputError(GLFW_PLATFORM_ERROR, "No monitors found"); _glfwPlatformTerminate();