Skip to content

Commit

Permalink
vulkan/context: implement control for MoltenVK context
Browse files Browse the repository at this point in the history
  • Loading branch information
sixones committed Feb 29, 2024
1 parent 24866ec commit 2a141f7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions video/out/vulkan/context_moltenvk.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2a141f7

Please sign in to comment.