mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-18 16:00:48 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user