Revert minor optimization that needs some more work first

This commit is contained in:
Henrik Rydgård committed 2024-04-07 21:14:45 +02:00
1 parent d52651f1d2
commit 0bdbffd12f
1 file changed
+1 -1
+1 -1
View File
@@ -1443,7 +1443,7 @@ VKRRenderPass *VulkanQueueRunner::PerformBindFramebufferAsRenderTarget(const VKR
}
TransitionColorToOptimal(cmd, fb->color.image, fb->color.layout, fb->numLayers, &recordBarrier_);
if (fb->depth.image && RenderPassTypeHasDepth(step.render.renderPassType)) {
if (fb->depth.image) { // } && RenderPassTypeHasDepth(step.render.renderPassType)) {
TransitionDepthToOptimal(cmd, fb->depth.image, fb->depth.layout, fb->numLayers, &recordBarrier_);
}