diff --git a/video/out/opengl/context_glx.c b/video/out/opengl/context_glx.c index 5ff6038ce7..5d22563632 100644 --- a/video/out/opengl/context_glx.c +++ b/video/out/opengl/context_glx.c @@ -206,10 +206,8 @@ static bool glx_check_visible(struct ra_ctx *ctx) static void glx_swap_buffers(struct ra_ctx *ctx) { glXSwapBuffers(ctx->vo->x11->display, ctx->vo->x11->window); - if (ctx->vo->x11->use_present) { - vo_x11_present(ctx->vo); + if (ctx->vo->x11->use_present) present_sync_swap(ctx->vo->x11->present); - } } static void glx_get_vsync(struct ra_ctx *ctx, struct vo_vsync_info *info) diff --git a/video/out/opengl/context_x11egl.c b/video/out/opengl/context_x11egl.c index 66aed36bcf..a0f710f3ec 100644 --- a/video/out/opengl/context_x11egl.c +++ b/video/out/opengl/context_x11egl.c @@ -82,10 +82,8 @@ static void mpegl_swap_buffers(struct ra_ctx *ctx) struct priv *p = ctx->priv; eglSwapBuffers(p->egl_display, p->egl_surface); - if (ctx->vo->x11->use_present) { - vo_x11_present(ctx->vo); + if (ctx->vo->x11->use_present) present_sync_swap(ctx->vo->x11->present); - } } static void mpegl_get_vsync(struct ra_ctx *ctx, struct vo_vsync_info *info) diff --git a/video/out/vulkan/context_xlib.c b/video/out/vulkan/context_xlib.c index 3a4af11c1c..0c01d56fc9 100644 --- a/video/out/vulkan/context_xlib.c +++ b/video/out/vulkan/context_xlib.c @@ -34,10 +34,8 @@ static bool xlib_check_visible(struct ra_ctx *ctx) static void xlib_vk_swap_buffers(struct ra_ctx *ctx) { - if (ctx->vo->x11->use_present) { - vo_x11_present(ctx->vo); + if (ctx->vo->x11->use_present) present_sync_swap(ctx->vo->x11->present); - } } static void xlib_vk_get_vsync(struct ra_ctx *ctx, struct vo_vsync_info *info)