cocoa: allow automatic gpu switching

Fixes #820
This commit is contained in:
Stefano Pigozzi 2014-06-02 10:11:07 +02:00
parent c3d17ece7b
commit 1927f4535c
1 changed files with 3 additions and 0 deletions

View File

@ -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
};