mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-25 15:16:22 +00:00
Don't delete cmd buffer records until we've flushed to disk
This commit is contained in:
@@ -899,8 +899,6 @@ VkResult WrappedVulkan::vkQueuePresentWSI(
|
|||||||
|
|
||||||
for(auto it = recordlist.begin(); it != recordlist.end(); ++it)
|
for(auto it = recordlist.begin(); it != recordlist.end(); ++it)
|
||||||
m_pFileSerialiser->Insert(it->second);
|
m_pFileSerialiser->Insert(it->second);
|
||||||
|
|
||||||
m_CmdBufferRecords[i]->Delete(GetResourceManager());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
recordlist.clear();
|
recordlist.clear();
|
||||||
@@ -922,6 +920,10 @@ VkResult WrappedVulkan::vkQueuePresentWSI(
|
|||||||
SAFE_DELETE(m_HeaderChunk);
|
SAFE_DELETE(m_HeaderChunk);
|
||||||
|
|
||||||
m_State = WRITING_IDLE;
|
m_State = WRITING_IDLE;
|
||||||
|
|
||||||
|
// delete cmd buffers now - had to keep them alive until after serialiser flush.
|
||||||
|
for(size_t i=0; i < m_CmdBufferRecords.size(); i++)
|
||||||
|
m_CmdBufferRecords[i]->Delete(GetResourceManager());
|
||||||
|
|
||||||
GetResourceManager()->MarkUnwrittenResources();
|
GetResourceManager()->MarkUnwrittenResources();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user