From c502f8b0a6a499bb45a3b3a34fe3ced04a737566 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 24 Mar 2021 20:41:43 +1000 Subject: [PATCH] GPU/Vulkan: Fix box downsampling using incorrect texture --- 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 793d2162f..ebbd3bf04 100644 --- a/src/core/gpu_hw_vulkan.cpp +++ b/src/core/gpu_hw_vulkan.cpp @@ -1790,7 +1790,7 @@ void GPU_HW_Vulkan::DownsampleFramebufferBoxFilter(Vulkan::Texture& source, u32 m_downsample_texture.TransitionToLayout(cmdbuf, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL); Assert(&source == &m_vram_texture || &source == &m_display_texture); - VkDescriptorSet ds = (&source == &m_vram_texture) ? m_vram_copy_descriptor_set : m_display_descriptor_set; + VkDescriptorSet ds = (&source == &m_vram_texture) ? m_vram_read_descriptor_set : m_display_descriptor_set; const u32 ds_left = left / m_resolution_scale; const u32 ds_top = top / m_resolution_scale;