mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Better reserve of written records size
This commit is contained in:
@@ -1038,7 +1038,7 @@ void ResourceManager<Configuration>::Serialise_InitialContentsNeeded(WriteSerial
|
||||
rdcarray<WrittenRecord> WrittenRecords;
|
||||
|
||||
// reasonable estimate, and these records are small
|
||||
WrittenRecords.reserve(m_FrameReferencedResources.size());
|
||||
WrittenRecords.reserve(m_FrameReferencedResources.size() + m_InitialContents.size());
|
||||
|
||||
// all resources that were recorded as being modified should be included in the list of those
|
||||
// needing initial contents
|
||||
|
||||
Reference in New Issue
Block a user