summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorflacs <tilkax@gmail.com>2015-07-08 08:01:23 +0200
committerflacs <tilkax@gmail.com>2015-07-08 08:01:23 +0200
commit761cb6a99a30bdc209e87c299aa4796a435d3cb4 (patch)
treef12e54c9e063e6aeaa48a53b653fb2ada0013d61 /Source/Core
parentc54534ee3ba6c9f7de066b9de3588c533f91a5c4 (diff)
parent2559a6f25c8b728aefe570ed1980c4d85b689828 (diff)
Merge pull request #2723 from Tilka/perf_map
VertexLoader: avoid empty lines in perf-$pid.map
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderBase.cpp2
-rw-r--r--Source/Core/VideoCommon/VertexLoaderManager.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderBase.cpp b/Source/Core/VideoCommon/VertexLoaderBase.cpp
index d5831bc8e5..34fa375ee1 100644
--- a/Source/Core/VideoCommon/VertexLoaderBase.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderBase.cpp
@@ -120,7 +120,7 @@ void VertexLoaderBase::AppendToString(std::string *dest) const
i, m_VtxAttr.texCoord[i].Elements, posMode[tex_mode[i]], posFormats[m_VtxAttr.texCoord[i].Format]));
}
}
- dest->append(StringFromFormat(" - %i v\n", m_numLoadedVertices));
+ dest->append(StringFromFormat(" - %i v", m_numLoadedVertices));
}
// a hacky implementation to compare two vertex loaders
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp
index 46a0eeaab0..0099064ca5 100644
--- a/Source/Core/VideoCommon/VertexLoaderManager.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp
@@ -109,7 +109,8 @@ void AppendListToString(std::string *dest)
dest->reserve(dest->size() + total_size);
for (const entry& entry : entries)
{
- dest->append(entry.text);
+ *dest += entry.text;
+ *dest += '\n';
}
}