diff options
Diffstat (limited to 'video/out/gl_cocoa.c')
-rw-r--r-- | video/out/gl_cocoa.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/video/out/gl_cocoa.c b/video/out/gl_cocoa.c index 81be21da58..dd8b5a865a 100644 --- a/video/out/gl_cocoa.c +++ b/video/out/gl_cocoa.c @@ -51,6 +51,11 @@ static void swapGlBuffers_cocoa(MPGLContext *ctx) vo_cocoa_swap_buffers(ctx->vo); } +static void set_current_cocoa(MPGLContext *ctx, bool current) +{ + vo_cocoa_set_current_context(ctx->vo, current); +} + void mpgl_set_backend_cocoa(MPGLContext *ctx) { ctx->config_window = config_window_cocoa; @@ -63,5 +68,8 @@ void mpgl_set_backend_cocoa(MPGLContext *ctx) ctx->vo_init = vo_cocoa_init; ctx->pause = vo_cocoa_pause; ctx->resume = vo_cocoa_resume; + ctx->register_resize_callback = vo_cocoa_register_resize_callback; ctx->vo_uninit = vo_cocoa_uninit; + ctx->set_current = set_current_cocoa; + ctx->set_current = set_current_cocoa; } |