Fixed test for no found monitors.

This commit is contained in:
Camilla Berglund 2014-11-06 02:11:12 +01:00
parent 8de5c4e3b8
commit 382133b384
1 changed files with 1 additions and 1 deletions

View File

@ -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();