mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
GPU/Vulkan: Fix incorrect layout in ClearDepthBuffer()
This commit is contained in:
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…
Reference in a new issue