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:
parent
f47f741c5e
commit
dd77d9e912
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user