From 4e2ee86c1a571ee0cab1fa67f4f2426c0b8368d6 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 8 Mar 2021 17:44:10 +1000 Subject: [PATCH] GPU/Vulkan: Fix incorrect layout in ClearDepthBuffer() --- src/core/gpu_hw_vulkan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_hw_vulkan.cpp b/src/core/gpu_hw_vulkan.cpp index abefcc9f7..d2083c201 100644 --- a/src/core/gpu_hw_vulkan.cpp +++ b/src/core/gpu_hw_vulkan.cpp @@ -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; }