GPU/Vulkan: Fix incorrect layout in ClearDepthBuffer()

This commit is contained in:
Connor McLaughlin 2021-03-08 17:44:10 +10:00
parent 9d0c5d4c6d
commit 4e2ee86c1a

View file

@ -1690,7 +1690,7 @@ void GPU_HW_Vulkan::ClearDepthBuffer()
vkCmdClearDepthStencilImage(cmdbuf, m_vram_depth_texture.GetImage(), m_vram_depth_texture.GetLayout(), &cds, 1u,
&dsrr);
m_vram_depth_texture.TransitionToLayout(cmdbuf, VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL);
m_vram_depth_texture.TransitionToLayout(cmdbuf, VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL);
m_last_depth_z = 1.0f;
}