Make sure device and queue are referenced as they're required on replay

* Helps with niche corner cases like empty frames with just a present.
  Without this, the queue isn't included and we get crashes on replay.
This commit is contained in:
baldurk
2016-01-06 21:29:57 +01:00
parent 2107b2fe55
commit 3999dcdf73
+2
View File
@@ -722,6 +722,8 @@ void WrappedVulkan::StartFrameCapture(void *dev, void *wnd)
GetResourceManager()->ClearReferencedResources();
GetResourceManager()->MarkResourceFrameReferenced(GetResID(m_Instance), eFrameRef_Read);
GetResourceManager()->MarkResourceFrameReferenced(GetResID(m_Device), eFrameRef_Read);
GetResourceManager()->MarkResourceFrameReferenced(GetResID(m_Queue), eFrameRef_Read);
// need to do all this atomically so that no other commands
// will check to see if they need to markdirty or markpendingdirty