diff options
Diffstat (limited to 'video/out/gl_wayland.c')
-rw-r--r-- | video/out/gl_wayland.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/gl_wayland.c b/video/out/gl_wayland.c index a1c04b199d..d86faa8d95 100644 --- a/video/out/gl_wayland.c +++ b/video/out/gl_wayland.c @@ -196,7 +196,12 @@ static void releaseGlContext_wayland(MPGLContext *ctx) static void swapGlBuffers_wayland(MPGLContext *ctx) { struct vo_wayland_state *wl = ctx->vo->wayland; + + if (!wl->frame.pending) + return; + eglSwapBuffers(wl->egl_context.egl.dpy, wl->egl_context.egl_surface); + wl->frame.pending = false; } static int control(struct vo *vo, int *events, int request, void *data) |