diff --git a/video/out/cocoa_common.h b/video/out/cocoa_common.h index e2bed88d08..5b440384fe 100644 --- a/video/out/cocoa_common.h +++ b/video/out/cocoa_common.h @@ -27,7 +27,7 @@ struct vo_cocoa_state; int vo_cocoa_init(struct vo *vo); void vo_cocoa_uninit(struct vo *vo); -int vo_cocoa_config_window(struct vo *vo, uint32_t flags, void *gl_ctx); +int vo_cocoa_config_window(struct vo *vo, uint32_t flags); void vo_cocoa_set_current_context(struct vo *vo, bool current); bool vo_cocoa_start_frame(struct vo *vo); diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index f9508d6719..a9600dd518 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -550,7 +550,7 @@ void vo_cocoa_release_nsgl_ctx(struct vo *vo) s->gl_ctx = nil; } -int vo_cocoa_config_window(struct vo *vo, uint32_t flags, void *gl_ctx) +int vo_cocoa_config_window(struct vo *vo, uint32_t flags) { struct vo_cocoa_state *s = vo->cocoa; with_cocoa_lock_on_main_thread(vo, ^{ diff --git a/video/out/gl_cocoa.c b/video/out/gl_cocoa.c index 014bf38204..1ff9c668ed 100644 --- a/video/out/gl_cocoa.c +++ b/video/out/gl_cocoa.c @@ -141,7 +141,7 @@ static bool config_window_cocoa(struct MPGLContext *ctx, int flags) if (!ctx->gl->SwapInterval) ctx->gl->SwapInterval = set_swap_interval; - vo_cocoa_config_window(ctx->vo, flags, p->ctx); + vo_cocoa_config_window(ctx->vo, flags); return true; }