Don't directly frame-reference lists being executed

* It's no longer needed as they don't have direct parents anymore, and
  it can break in cases where a list is being re-recorded while a
  frame capture is on-going (but hasn't been baked).
This commit is contained in:
baldurk
2016-10-18 12:02:21 +02:00
parent 63f505c95e
commit 529f230e4e
@@ -379,9 +379,6 @@ void STDMETHODCALLTYPE WrappedID3D12CommandQueue::ExecuteCommandLists(
record->bakedCommands->AddResourceReferences(GetResourceManager());
record->bakedCommands->AddReferencedIDs(refdIDs);
// ref the parent command list by itself, this will pull in the cmd buffer pool
GetResourceManager()->MarkResourceFrameReferenced(record->GetResourceID(), eFrameRef_Read);
// reference all executed bundles as well
for(size_t b = 0; b < record->bakedCommands->cmdInfo->bundles.size(); b++)
{