Always perform barrier for depth image even if it's not pipeline-bound

This commit is contained in:
baldurk
2016-07-20 15:24:37 +02:00
parent 31fb9dbaec
commit b3e192bdb6
+1 -1
View File
@@ -2838,7 +2838,7 @@ void VulkanReplay::BindOutputWindow(uint64_t id, bool depth)
DoPipelineBarrier(cmd, 1, &outw.bbBarrier);
DoPipelineBarrier(cmd, 1, &outw.colBarrier[outw.curidx]);
if(depth)
if(outw.dsimg != VK_NULL_HANDLE)
DoPipelineBarrier(cmd, 1, &outw.depthBarrier);
outw.depthBarrier.oldLayout = outw.depthBarrier.newLayout;