Don't transition to UNDEFINED if undoing implicit barriers. Closes #1394

This commit is contained in:
baldurk
2019-06-03 14:16:43 +01:00
parent 1fd75c50f8
commit 0842e50cb1
@@ -998,7 +998,8 @@ bool WrappedVulkan::Serialise_vkEndCommandBuffer(SerialiserType &ser, VkCommandB
barrier.subresourceRange = it->second.subresourceRange;
if(barrier.oldLayout != barrier.newLayout)
if(barrier.oldLayout != barrier.newLayout &&
barrier.newLayout != VK_IMAGE_LAYOUT_UNDEFINED)
revertBarriers.push_back(barrier);
}