mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 07:42:18 +00:00
[vulkan] Ensure render passes have at least one subpass
Non-graphics render passes don't normally specify render pass info, but still want frames and command buffers.
This commit is contained in:
parent
b81a77c3f7
commit
ecd5e1de9f
1 changed files with 3 additions and 0 deletions
|
@ -348,6 +348,9 @@ QFV_RenderPass_New (vulkan_ctx_t *ctx, const char *name, qfv_draw_t function)
|
|||
QFV_ParseRGBA (ctx, (float *)&rp->color, color, rp->renderpassDef);
|
||||
}
|
||||
}
|
||||
if (!rp->subpassCount) {
|
||||
rp->subpassCount = 1;
|
||||
}
|
||||
|
||||
DARRAY_INIT (&rp->frames, 4);
|
||||
DARRAY_RESIZE (&rp->frames, ctx->frames.size);
|
||||
|
|
Loading…
Reference in a new issue