summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2012-05-15 09:31:38 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2012-05-15 10:37:58 +0200
commitdd77d9e91232c276229703ff1ca86c0ced771265 (patch)
treecd21ab2bb949335853fbc9d8920b7cb1a478a5c3
parentf47f741c5e62b3a1116e5a8ab178ae3a6deb847b (diff)
downloadmpv-dd77d9e91232c276229703ff1ca86c0ced771265.tar.bz2
mpv-dd77d9e91232c276229703ff1ca86c0ced771265.tar.xz
cocoa: return the real CGLPixelFormatObj
vo_cocoa_cgl_pixel_format is returning a cached CGLPixelFormatObj. Return the current one by querying the OpenGL context.
-rw-r--r--libvo/cocoa_common.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/cocoa_common.m b/libvo/cocoa_common.m
index cef0b65ee8..9a822cc4ea 100644
--- a/libvo/cocoa_common.m
+++ b/libvo/cocoa_common.m
@@ -405,7 +405,7 @@ void *vo_cocoa_cgl_context(void)
void *vo_cocoa_cgl_pixel_format(void)
{
- return [s->pixelFormat CGLPixelFormatObj];
+ return CGLGetPixelFormat(vo_cocoa_cgl_context());
}
int vo_cocoa_cgl_color_size(void)