[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:
Bill Currie 2023-06-24 03:32:21 +09:00
parent 41d69586d2
commit 4abf316f6c
1 changed files with 4 additions and 0 deletions

View File

@ -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))