From 382133b3849c74706499f81189b32040ddab0f8d Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 6 Nov 2014 02:11:12 +0100 Subject: [PATCH] Fixed test for no found monitors. --- src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();