summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2016-06-12 17:51:08 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2016-06-12 17:51:08 +0200
commite00b8f6b8b46741fecd8e393538fc4d446a59c26 (patch)
tree55e0cc3a5d38bc5f867100d8a440487be734d527
parentde4c74e5a4a996e8ff431c8f33a32c4b580be203 (diff)
downloadmpv-no-graphics-switching.tar.bz2
mpv-no-graphics-switching.tar.xz
remove graphic switchingno-graphics-switching
-rw-r--r--video/out/opengl/context_cocoa.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/video/out/opengl/context_cocoa.c b/video/out/opengl/context_cocoa.c
index 271bdb7444..90a65bb38e 100644
--- a/video/out/opengl/context_cocoa.c
+++ b/video/out/opengl/context_cocoa.c
@@ -64,23 +64,12 @@ static CGLError test_gl_version(struct vo *vo,
(CGLPixelFormatAttribute) version,
kCGLPFADoubleBuffer,
kCGLPFAAccelerated,
- #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_8
- // leave this as the last entry of the array to not break the fallback
- // code
- kCGLPFASupportsAutomaticGraphicsSwitching,
- #endif
0
};
GLint npix;
CGLError err;
err = CGLChoosePixelFormat(attrs, pix, &npix);
- if (err == kCGLBadAttribute) {
- // kCGLPFASupportsAutomaticGraphicsSwitching is probably not supported
- // by the current hardware. Falling back to not using it.
- attrs[MP_ARRAY_SIZE(attrs) - 2] = 0;
- err = CGLChoosePixelFormat(attrs, pix, &npix);
- }
if (err != kCGLNoError) {
MP_ERR(vo, "error creating CGL pixel format: %s (%d)\n",
@@ -173,4 +162,4 @@ const struct mpgl_driver mpgl_driver_cocoa = {
.swap_buffers = cocoa_swap_buffers,
.control = cocoa_control,
.uninit = cocoa_uninit,
-}; \ No newline at end of file
+};