mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
[vulkan] Move render pass array init
Having it in Vulkan_Init_Common means the array can be used in more places than just Vulkan_CreateRenderPass (which probably needs a rename).
This commit is contained in:
parent
2be19046b6
commit
81a5e076ac
1 changed files with 1 additions and 3 deletions
|
@ -203,6 +203,7 @@ Vulkan_Init_Common (vulkan_ctx_t *ctx)
|
|||
Vulkan_Init_Cvars ();
|
||||
ctx->instance = QFV_CreateInstance (ctx, PACKAGE_STRING, 0x000702ff, 0,
|
||||
instance_extensions);//FIXME version
|
||||
DARRAY_INIT (&ctx->renderPasses, 4);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -445,9 +446,6 @@ Vulkan_CreateRenderPass (vulkan_ctx_t *ctx)
|
|||
|
||||
rp->draw = renderpass_draw;
|
||||
|
||||
if (!ctx->renderPasses.grow) {
|
||||
DARRAY_INIT (&ctx->renderPasses, 4);
|
||||
}
|
||||
DARRAY_APPEND (&ctx->renderPasses, rp);
|
||||
|
||||
qfv_device_t *device = ctx->device;
|
||||
|
|
Loading…
Reference in a new issue