Sanitise image layouts for revert of partial renderpass layout changes

This commit is contained in:
baldurk
2019-06-10 14:38:23 +01:00
parent c155a85945
commit 28e4660ffe
@@ -997,7 +997,12 @@ bool WrappedVulkan::Serialise_vkEndCommandBuffer(SerialiserType &ser, VkCommandB
if(barrier.oldLayout != barrier.newLayout &&
barrier.newLayout != VK_IMAGE_LAYOUT_UNDEFINED)
{
SanitiseOldImageLayout(barrier.oldLayout);
SanitiseNewImageLayout(barrier.newLayout);
revertBarriers.push_back(barrier);
}
}
if(!revertBarriers.empty())