diff --git a/video/out/vulkan/context_moltenvk.m b/video/out/vulkan/context_moltenvk.m index 5124280bb2309..08dcc103b1f4c 100644 --- a/video/out/vulkan/context_moltenvk.m +++ b/video/out/vulkan/context_moltenvk.m @@ -21,6 +21,7 @@ #include "common.h" #include "context.h" +#include "video/out/vo.h" #include "utils.h" static bool moltenvk_reconfig(struct ra_ctx *ctx); @@ -40,7 +41,10 @@ - (id)initWithContext: (struct ra_ctx*) ctx - (void)layoutSublayersOfLayer: (CALayer*) layer { - moltenvk_reconfig(_ra_ctx); + CGSize s = layer.drawableSize; + _ra_ctx->vo->dwidth = s.width; + _ra_ctx->vo->dheight = s.height; + vo_event(_ra_ctx->vo, VO_EVENT_RESIZE | VO_EVENT_EXPOSE); } @end