diff options
Diffstat (limited to 'video/out/vulkan/context_xlib.c')
-rw-r--r-- | video/out/vulkan/context_xlib.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/video/out/vulkan/context_xlib.c b/video/out/vulkan/context_xlib.c index 3a4af11c1c..dadfabdeb8 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) @@ -128,14 +126,15 @@ static void xlib_wakeup(struct ra_ctx *ctx) vo_x11_wakeup(ctx->vo); } -static void xlib_wait_events(struct ra_ctx *ctx, int64_t until_time_us) +static void xlib_wait_events(struct ra_ctx *ctx, int64_t until_time_ns) { - vo_x11_wait_events(ctx->vo, until_time_us); + vo_x11_wait_events(ctx->vo, until_time_ns); } const struct ra_ctx_fns ra_ctx_vulkan_xlib = { .type = "vulkan", .name = "x11vk", + .description = "X11/Vulkan", .reconfig = xlib_reconfig, .control = xlib_control, .wakeup = xlib_wakeup, |