mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[vulkan] Increment render pass index one at a time
This fixes the bogus render pass objects.
This commit is contained in:
parent
2cadf040d3
commit
38453f3d2f
1 changed files with 1 additions and 1 deletions
|
@ -802,10 +802,10 @@ init_render (qfv_render_t *rend, qfv_renderinfo_t *rinfo,
|
|||
.num_renderpasses = rinfo->num_renderpasses,
|
||||
.renderpasses = &jp->renderpasses[s->inds.num_renderpasses],
|
||||
};
|
||||
s->inds.num_renderpasses += rinfo->num_renderpasses;
|
||||
for (uint32_t i = 0; i < rend->num_renderpasses; i++) {
|
||||
init_renderpass (&rend->renderpasses[i], &rinfo->renderpasses[i],
|
||||
jp, s);
|
||||
s->inds.num_renderpasses++;
|
||||
}
|
||||
rend->active = &rend->renderpasses[0];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue