summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DOCS/man/options.rst2
-rw-r--r--video/out/cocoa_common.m2
-rw-r--r--video/out/opengl/context_cocoa.c1
3 files changed, 2 insertions, 3 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index a32cb98cca..d17aefe347 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -4593,7 +4593,7 @@ The following video options are currently all specific to ``--vo=opengl`` and
``--opengl-early-flush=<yes|no>``
Call ``glFlush()`` after rendering a frame and before attempting to display
- it (default: no). Can fix stuttering in some causes, in other cases probably
+ it (default: no). Can fix stuttering in some cases, in other cases probably
causes it. For testing - could be removed any time.
Miscellaneous
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index 9690ddb10f..ba241f42cc 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -718,8 +718,6 @@ void vo_cocoa_swap_buffers(struct vo *vo)
if (skip)
return;
- CGLFlushDrawable(s->cgl_ctx);
-
pthread_mutex_lock(&s->lock);
s->frame_w = vo->dwidth;
s->frame_h = vo->dheight;
diff --git a/video/out/opengl/context_cocoa.c b/video/out/opengl/context_cocoa.c
index 267c706d62..941274ce6c 100644
--- a/video/out/opengl/context_cocoa.c
+++ b/video/out/opengl/context_cocoa.c
@@ -153,6 +153,7 @@ static int cocoa_control(struct MPGLContext *ctx, int *events, int request,
static void cocoa_swap_buffers(struct MPGLContext *ctx)
{
vo_cocoa_swap_buffers(ctx->vo);
+ ctx->gl->Flush();
}
const struct mpgl_driver mpgl_driver_cocoa = {