Fixed crash on monitor disconnection.

This commit is contained in:
Camilla Berglund
2014-03-25 19:37:25 +01:00
parent 2e8d17e7b7
commit bf0adc2c70
2 changed files with 3 additions and 2 deletions
+1 -2
View File
@@ -286,8 +286,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
else
{
_glfwInputError(GLFW_PLATFORM_ERROR,
"Cocoa: Failed to find NSScreen for CGDisplay %s",
monitors[found]->name);
"Cocoa: Failed to find NSScreen for CGDisplay");
_glfwFreeMonitor(monitors[found]);
monitors[found] = NULL;