summaryrefslogtreecommitdiff
path: root/ZAPD/ZDisplayList.cpp
diff options
context:
space:
mode:
authorLouis <35883445+louist103@users.noreply.github.com>2022-06-27 12:32:52 -0400
committerNicholas Estelami <NEstelami@users.noreply.github.com>2022-07-30 22:24:40 -0400
commit0595f813a67315bf6acdc7fcf5cc406ab277d9b1 (patch)
tree39f175b546cb21ab78ff519cf5254b44eb235664 /ZAPD/ZDisplayList.cpp
parentb5bffbf8215aa72cffc1d7403238b946bd1db262 (diff)
Done?
Diffstat (limited to 'ZAPD/ZDisplayList.cpp')
-rw-r--r--ZAPD/ZDisplayList.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ZAPD/ZDisplayList.cpp b/ZAPD/ZDisplayList.cpp
index 5e9b1b2..3b50c1f 100644
--- a/ZAPD/ZDisplayList.cpp
+++ b/ZAPD/ZDisplayList.cpp
@@ -94,6 +94,7 @@ void ZDisplayList::ParseRawData()
instructions.reserve(numInstructions);
uint32_t ptr = rawDataIndex;
+ instructions.reserve(numInstructions);
for (size_t i = 0; i < numInstructions; i++)
{
instructions.push_back(BitConverter::ToUInt64BE(rawData, ptr));
@@ -1839,7 +1840,7 @@ void ZDisplayList::DeclareReferences(const std::string& prefix)
// Generate Vertex Declarations
std::vector<int32_t> vtxKeys;
-
+ vtxKeys.reserve(vertices.size());
for (auto& item : vertices)
vtxKeys.push_back(item.first);