Fixed potential segfault on init.

This commit is contained in:
Camilla Berglund
2013-08-21 10:14:16 +02:00
parent 71c07feffd
commit 83f57ff0ce
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ GLFWAPI int glfwInit(void)
_glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount);
if (_glfw.monitors == NULL)
{
_glfwErrorCallback(GLFW_PLATFORM_ERROR, "No monitors found");
_glfwInputError(GLFW_PLATFORM_ERROR, "No monitors found");
_glfwPlatformTerminate();
return GL_FALSE;
}