Fix object unwrapping on VkGraphicsPipelineCreateInfo

This commit is contained in:
baldurk
2024-08-27 11:11:01 +01:00
parent 841a487d36
commit f3c10de41c
+3 -3
View File
@@ -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;