diff options
Diffstat (limited to 'video/out/gl_cocoa.c')
-rw-r--r-- | video/out/gl_cocoa.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/gl_cocoa.c b/video/out/gl_cocoa.c index fd12ef4621..014bf38204 100644 --- a/video/out/gl_cocoa.c +++ b/video/out/gl_cocoa.c @@ -153,6 +153,11 @@ static void releaseGlContext_cocoa(MPGLContext *ctx) CGLReleaseContext(p->ctx); } +static bool start_frame_cocoa(MPGLContext *ctx) +{ + return vo_cocoa_start_frame(ctx->vo); +} + static void swapGlBuffers_cocoa(MPGLContext *ctx) { vo_cocoa_swap_buffers(ctx->vo); @@ -169,6 +174,7 @@ void mpgl_set_backend_cocoa(MPGLContext *ctx) ctx->config_window = config_window_cocoa; ctx->releaseGlContext = releaseGlContext_cocoa; ctx->swapGlBuffers = swapGlBuffers_cocoa; + ctx->start_frame = start_frame_cocoa; ctx->vo_init = vo_cocoa_init; ctx->register_resize_callback = vo_cocoa_register_resize_callback; ctx->vo_uninit = vo_cocoa_uninit; |