From 3ceaddf1896780f82f9ce3a4c53677bc8448054b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 15 May 2012 09:31:38 +0200 Subject: [PATCH] cocoa: return the real CGLPixelFormatObj vo_cocoa_cgl_pixel_format returned a cached CGLPixelFormatObj. Return the current one by querying the OpenGL context. --- libvo/cocoa_common.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvo/cocoa_common.m b/libvo/cocoa_common.m index be0278dc17..c6ed567e3d 100644 --- a/libvo/cocoa_common.m +++ b/libvo/cocoa_common.m @@ -439,7 +439,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) -- 2.11.4.GIT