diff --git a/video/out/vulkan/context_moltenvk.m b/video/out/vulkan/context_moltenvk.m index bb5992e3b0242..1e36e9dda135c 100644 --- a/video/out/vulkan/context_moltenvk.m +++ b/video/out/vulkan/context_moltenvk.m @@ -22,6 +22,7 @@ #include "common.h" #include "context.h" #include "utils.h" +#include "video/out/vo.h" static bool moltenvk_reconfig(struct ra_ctx *ctx); @@ -34,7 +35,6 @@ @implementation MetalLayerDelegate - (id)initWithContext: (struct ra_ctx*) ctx { - MP_MSG(ctx, MSGL_V, "### MetalLayerDelegate > Called initWithContext\n"); _ra_ctx = ctx; return self; } @@ -44,6 +44,8 @@ - (void)layoutSublayersOfLayer: (CALayer*) layer MP_MSG(_ra_ctx, MSGL_V, "### MetalLayerDelegate > Called layoutSublayersOfLayer\n"); moltenvk_reconfig(_ra_ctx); + vo_event(_ra_ctx->vo, VO_EVENT_RESIZE); + vo_event(_ra_ctx->vo, VO_EVENT_EXPOSE); } @end