1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-30 11:42:04 +00:00

cocoa: return the real CGLPixelFormatObj

vo_cocoa_cgl_pixel_format is returning a cached CGLPixelFormatObj.
Return the current one by querying the OpenGL context.
This commit is contained in:
Stefano Pigozzi 2012-05-15 09:31:38 +02:00
parent f47f741c5e
commit dd77d9e912

View File

@ -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)