Fixed test for no found monitors.

master
Camilla Berglund ago%!(EXTRA string=11 years)
parent 8de5c4e3b8
commit 382133b384
  1. 2
      src/init.c

@ -129,7 +129,7 @@ GLFWAPI int glfwInit(void)
} }
_glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount); _glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount);
if (_glfw.monitors == NULL) if (!_glfw.monitorCount)
{ {
_glfwInputError(GLFW_PLATFORM_ERROR, "No monitors found"); _glfwInputError(GLFW_PLATFORM_ERROR, "No monitors found");
_glfwPlatformTerminate(); _glfwPlatformTerminate();

Loading…
Cancel
Save