Skip to content

Commit

Permalink
vulkan/context: fix temporary log
Browse files Browse the repository at this point in the history
  • Loading branch information
themisterholliday committed Feb 29, 2024
1 parent b1859c6 commit d88fba9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions video/out/vulkan/context_moltenvk.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ @implementation MetalLayerDelegate

- (id)initWithContext: (struct ra_ctx*) ctx
{
MP_MSG(ctx, "### MetalLayerDelegate > Called initWithContext\n");
MP_MSG(ctx, MSGL_V, "### MetalLayerDelegate > Called initWithContext\n");
_ra_ctx = ctx;
return self;
}

- (void)layoutSublayersOfLayer: (CALayer*) layer
{
MP_MSG(_ra_ctx, "### MetalLayerDelegate > Called layoutSublayersOfLayer\n");
MP_MSG(_ra_ctx, MSGL_V, "### MetalLayerDelegate > Called layoutSublayersOfLayer\n");
moltenvk_reconfig(_ra_ctx);
}

Expand Down Expand Up @@ -98,8 +98,8 @@ static bool moltenvk_init(struct ra_ctx *ctx)
p->delegate = [[MetalLayerDelegate alloc] initWithContext: ctx];
p->layer.delegate = p->delegate;

MP_MSG(ctx, "### Set this delegate\n");
MP_MSG(ctx, "### Attached delegate to layer\n");
MP_MSG(ctx, MSGL_V, "### Set this delegate\n");
MP_MSG(ctx, MSGL_V, "### Attached delegate to layer\n");

return true;
fail:
Expand All @@ -112,7 +112,7 @@ static bool moltenvk_reconfig(struct ra_ctx *ctx)
struct priv *p = ctx->priv;
CGSize s = p->layer.drawableSize;
ra_vk_ctx_resize(ctx, s.width, s.height);
MP_MSG(ctx, "Width: %f, Height: %f ### Called resize\n", s.width, s.height);
MP_MSG(ctx, MSGL_V, "Width: %f, Height: %f ### Called resize\n", s.width, s.height);
return true;
}

Expand All @@ -122,7 +122,7 @@ static int moltenvk_control(struct ra_ctx *ctx, int *events, int request, void *

if (*events & VO_EVENT_RESIZE)
{
MP_MSG(ctx, ctx->vo->dwidth, ctx->vo->dheight, "### moltenvk_control > VO_EVENT_RESIZE\n");
MP_MSG(ctx, MSGL_V, "Width: %f, Height: %f ### moltenvk_control > VO_EVENT_RESIZE\n", ctx->vo->dwidth, ctx->vo->dheight);
ra_vk_ctx_resize(ctx, ctx->vo->dwidth, ctx->vo->dheight);
return VO_TRUE;
}
Expand Down

0 comments on commit d88fba9

Please sign in to comment.