Skip to content

Commit

Permalink
vulkan/context: trying these events for resizing the window
Browse files Browse the repository at this point in the history
  • Loading branch information
themisterholliday committed Mar 6, 2024
1 parent 09adda1 commit d5fd955
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion video/out/vulkan/context_moltenvk.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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;
}
Expand All @@ -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
Expand Down

0 comments on commit d5fd955

Please sign in to comment.