From efc821bc84b2795b1019f90c034259611521497f Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 6 Aug 2024 14:24:52 +1000 Subject: [PATCH] VulkanDevice: Fix incorrect condition in UnbindTexture() --- src/util/vulkan_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/vulkan_device.cpp b/src/util/vulkan_device.cpp index 67e39fd5e..224a16ef0 100644 --- a/src/util/vulkan_device.cpp +++ b/src/util/vulkan_device.cpp @@ -3760,7 +3760,7 @@ void VulkanDevice::UnbindTexture(VulkanTexture* tex) } } - if (tex->IsRenderTarget() || tex->IsDepthStencil()) + if (tex->IsRenderTarget() || tex->IsRWTexture()) { for (u32 i = 0; i < m_num_current_render_targets; i++) {