From fc3dd44256cc4e74f914f60f928cefef42d06c81 Mon Sep 17 00:00:00 2001 From: Adam Livesley Date: Thu, 29 Feb 2024 19:19:17 +0000 Subject: [PATCH] vulkan/context: implement control for MoltenVK context --- video/out/vulkan/context_moltenvk.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/video/out/vulkan/context_moltenvk.m b/video/out/vulkan/context_moltenvk.m index 9a71c6dabc25d..5124280bb2309 100644 --- a/video/out/vulkan/context_moltenvk.m +++ b/video/out/vulkan/context_moltenvk.m @@ -112,6 +112,14 @@ static bool moltenvk_reconfig(struct ra_ctx *ctx) static int moltenvk_control(struct ra_ctx *ctx, int *events, int request, void *arg) { + struct priv *p = ctx->priv; + + if (*events & VO_EVENT_RESIZE) + { + ra_vk_ctx_resize(ctx, ctx->vo->dwidth, ctx->vo->dheight); + return VO_TRUE; + } + return VO_NOTIMPL; }