summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp
index c7a2f46bab..f0d8decb3d 100644
--- a/Source/Core/VideoCommon/VertexLoaderManager.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp
@@ -106,11 +106,11 @@ void AppendListToString(std::string* dest)
size_t total_size = 0;
for (const auto& map_entry : s_vertex_loader_map)
{
- entry e;
- map_entry.second->AppendToString(&e.text);
- e.num_verts = map_entry.second->m_numLoadedVertices;
- entries.push_back(e);
+ entry e = {map_entry.second->ToString(),
+ static_cast<u64>(map_entry.second->m_numLoadedVertices)};
+
total_size += e.text.size() + 1;
+ entries.push_back(std::move(e));
}
sort(entries.begin(), entries.end());
dest->reserve(dest->size() + total_size);