mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Fixed crash on monitor disconnection.
This commit is contained in:
+1
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user