From ac18f52757142a3fe3fdbb67b2bfc0187bc9bc67 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 23 Feb 2024 13:52:24 +0000 Subject: [PATCH] Fix incorrect index being used when rebinding partial state --- renderdoc/driver/vulkan/vk_state.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/driver/vulkan/vk_state.cpp b/renderdoc/driver/vulkan/vk_state.cpp index 3ebc509c9..2b5fbe9d6 100644 --- a/renderdoc/driver/vulkan/vk_state.cpp +++ b/renderdoc/driver/vulkan/vk_state.cpp @@ -876,9 +876,9 @@ void VulkanRenderState::BindDescriptorSetsWithoutPipeline(WrappedVulkan *vk, VkC break; const DescSetLayout &iDescLayout = - vk->GetDebugManager()->GetDescSetLayout(iPipeLayout.descSetLayouts[i]); + vk->GetDebugManager()->GetDescSetLayout(iPipeLayout.descSetLayouts[j]); const DescSetLayout &refDescLayout = - vk->GetDebugManager()->GetDescSetLayout(refPipeLayout.descSetLayouts[i]); + vk->GetDebugManager()->GetDescSetLayout(refPipeLayout.descSetLayouts[j]); if(iPipeLayout.descSetLayouts[j] != refPipeLayout.descSetLayouts[j] && !iDescLayout.isCompatible(refDescLayout))