GPU/Vulkan: Fix incorrect layout in ClearDepthBuffer()

pull/1769/head
Connor McLaughlin 5 years ago
parent 9d0c5d4c6d
commit 4e2ee86c1a

@ -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;
}

Loading…
Cancel
Save