Ensure we unwrap pNext chain on replay in vkQueueSubmit

This commit is contained in:
baldurk
2018-07-12 15:33:50 +01:00
parent 85cddfff07
commit d72cfa58c7
@@ -396,6 +396,10 @@ bool WrappedVulkan::Serialise_vkQueueSubmit(SerialiserType &ser, VkQueue queue,
VkSubmitInfo rerecordedSubmit = submitInfo;
byte *tempMem = GetTempMemory(GetNextPatchSize(rerecordedSubmit.pNext));
UnwrapNextChain(m_State, "VkSubmitInfo", tempMem, (VkGenericStruct *)&rerecordedSubmit);
rerecordedSubmit.commandBufferCount = (uint32_t)rerecordedCmds.size();
rerecordedSubmit.pCommandBuffers = &rerecordedCmds[0];