From e1ae9af5a08f283a7edc2c0c59738a8da66a8074 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 2 Dec 2014 23:24:23 +0100 Subject: [PATCH] Removed OS X display capturing (for now). Fixes #378 (poorly). --- src/cocoa_monitor.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cocoa_monitor.m b/src/cocoa_monitor.m index cfb76a79..db3cf714 100644 --- a/src/cocoa_monitor.m +++ b/src/cocoa_monitor.m @@ -204,7 +204,6 @@ GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired) monitor->ns.previousMode = CGDisplayCopyDisplayMode(monitor->ns.displayID); CGDisplayFadeReservationToken token = beginFadeReservation(); - CGDisplayCapture(monitor->ns.displayID); CGDisplaySetDisplayMode(monitor->ns.displayID, native, NULL); endFadeReservation(token); } @@ -231,7 +230,6 @@ void _glfwRestoreVideoMode(_GLFWmonitor* monitor) CGDisplayFadeReservationToken token = beginFadeReservation(); CGDisplaySetDisplayMode(monitor->ns.displayID, monitor->ns.previousMode, NULL); - CGDisplayRelease(monitor->ns.displayID); endFadeReservation(token); CGDisplayModeRelease(monitor->ns.previousMode);