From 6501a3007c16265ec3e5b1bf66407fb8d6444eb1 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Sun, 6 Jan 2013 12:37:56 -0500 Subject: [PATCH] No monitors should call error callback --- src/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/init.c b/src/init.c index 672e01ff..c2c6caf6 100644 --- a/src/init.c +++ b/src/init.c @@ -147,6 +147,7 @@ GLFWAPI int glfwInit(void) _glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount); if (!_glfw.monitors) { + _glfwErrorCallback(GLFW_PLATFORM_ERROR, "No monitors found"); _glfwPlatformTerminate(); return GL_FALSE; }