Handle off-by-one errors when replaying final parts of a subpass

This commit is contained in:
baldurk
2020-01-09 17:57:19 +00:00
parent d671c1ec86
commit cee81227b0
@@ -993,7 +993,7 @@ bool WrappedVulkan::Serialise_vkEndCommandBuffer(SerialiserType &ser, VkCommandB
rdcarray<rdcpair<ResourceId, ImageRegionState> > imgbarriers;
for(sub = m_RenderState.subpass; sub < numSubpasses - 1; sub++)
for(sub = m_RenderState.subpass + 1; sub < numSubpasses; sub++)
{
ObjDisp(commandBuffer)->CmdNextSubpass(Unwrap(commandBuffer), VK_SUBPASS_CONTENTS_INLINE);