mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 01:41:10 +00:00
[vulkan] Set frame buffer before calling draw functions
This lets them set up their subpass inherit info correctly. QF now renders correctly, albeit painfully slowly, on my VersaPro.
This commit is contained in:
parent
e1ecda9221
commit
95c4cdd1b0
1 changed files with 1 additions and 1 deletions
|
@ -147,6 +147,7 @@ vulkan_R_RenderFrame (SCR_Func *scr_funcs)
|
|||
for (size_t i = 0; i < vulkan_ctx->renderPasses.size; i++) {
|
||||
__auto_type rp = vulkan_ctx->renderPasses.a[i];
|
||||
__auto_type rpFrame = &rp->frames.a[vulkan_ctx->curFrame];
|
||||
frame->framebuffer = rp->framebuffers->a[imageIndex];
|
||||
rp->draw (rpFrame);
|
||||
}
|
||||
|
||||
|
@ -164,7 +165,6 @@ vulkan_R_RenderFrame (SCR_Func *scr_funcs)
|
|||
__auto_type rpFrame = &rp->frames.a[vulkan_ctx->curFrame];
|
||||
|
||||
if (rpFrame->renderpass) {
|
||||
frame->framebuffer = rp->framebuffers->a[imageIndex];
|
||||
renderPassInfo.framebuffer = frame->framebuffer,
|
||||
renderPassInfo.renderPass = rp->renderpass;
|
||||
renderPassInfo.clearValueCount = rp->clearValues->size;
|
||||
|
|
Loading…
Reference in a new issue