From f3c10de41c78aa3dce0a2e829d46d6609b9b7793 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 27 Aug 2024 11:11:01 +0100 Subject: [PATCH] Fix object unwrapping on VkGraphicsPipelineCreateInfo --- renderdoc/driver/vulkan/vk_next_chains.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/renderdoc/driver/vulkan/vk_next_chains.cpp b/renderdoc/driver/vulkan/vk_next_chains.cpp index 547b5483a..dd0590425 100644 --- a/renderdoc/driver/vulkan/vk_next_chains.cpp +++ b/renderdoc/driver/vulkan/vk_next_chains.cpp @@ -2467,11 +2467,11 @@ void UnwrapNextChain(CaptureState state, const char *structName, byte *&tempMem, UnwrapNextChain(state, "VkPipelineDynamicStateCreateInfo", tempMem, (VkBaseInStructure *)out->pDynamicState); - UnwrapInPlace(out->layout); - UnwrapInPlace(out->renderPass); + out->layout = Unwrap(in->layout); + out->renderPass = Unwrap(in->renderPass); out->subpass = in->subpass; if(out->flags & VK_PIPELINE_CREATE_DERIVATIVE_BIT) - UnwrapInPlace(out->basePipelineHandle); + out->basePipelineHandle = Unwrap(in->basePipelineHandle); else out->basePipelineHandle = VK_NULL_HANDLE; out->basePipelineIndex = in->basePipelineIndex;