No monitors should call error callback

master
Matt Arsenault ago%!(EXTRA string=13 years)
parent 5162796094
commit 6501a3007c
  1. 1
      src/init.c

@ -147,6 +147,7 @@ GLFWAPI int glfwInit(void)
_glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount); _glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount);
if (!_glfw.monitors) if (!_glfw.monitors)
{ {
_glfwErrorCallback(GLFW_PLATFORM_ERROR, "No monitors found");
_glfwPlatformTerminate(); _glfwPlatformTerminate();
return GL_FALSE; return GL_FALSE;
} }

Loading…
Cancel
Save