mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[vulkan] Update curFrame at end of render job
This fixes the insta-death of particles. Interestingly, other than particles (due to the ring of buffers not being used correctly), everything else worked nicely, so I guess 1-frame rendering got tested.
This commit is contained in:
parent
41d69586d2
commit
4abf316f6c
1 changed files with 4 additions and 0 deletions
|
@ -276,6 +276,10 @@ QFV_RunRenderJob (vulkan_ctx_t *ctx)
|
|||
0
|
||||
};
|
||||
dfunc->vkQueuePresentKHR (queue->queue, &presentInfo);
|
||||
|
||||
if (++ctx->curFrame >= rctx->frames.size) {
|
||||
ctx->curFrame = 0;
|
||||
}
|
||||
}
|
||||
|
||||
static VkImageView __attribute__((pure))
|
||||
|
|
Loading…
Reference in a new issue