Use original allocators when re-recording all commands. Refs #457

* We have to use the original allocators when re-recording because the
  capture may record multiple command buffers at the same time,
  requiring multiple allocators.
This commit is contained in:
baldurk
2017-01-05 18:55:45 +01:00
parent 0981a1e099
commit 67450b6180
@@ -190,10 +190,6 @@ bool WrappedID3D12GraphicsCommandList::Serialise_Reset(ID3D12CommandAllocator *p
pInitialState =
State == ResourceId() ? NULL : GetResourceManager()->GetLiveAs<ID3D12PipelineState>(State);
// pull all re-recorded commands from our own device and command pool for easier cleanup
if(!partial)
pAllocator = m_pDevice->GetAlloc();
ID3D12GraphicsCommandList *list = NULL;
HRESULT hr = m_pDevice->CreateCommandList(nodeMask, type, pAllocator, pInitialState, riid,
(void **)&list);