summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/out/cocoa_common.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index e53868d5a6..5385460792 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -348,6 +348,9 @@ static int create_gl_context(struct vo *vo, int gl3profile)
(CGLPixelFormatAttribute) cgl_profile(gl3profile),
kCGLPFADoubleBuffer,
kCGLPFAAccelerated,
+ #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_8
+ kCGLPFASupportsAutomaticGraphicsSwitching,
+ #endif
0
};