VertexLoader: avoid empty lines in perf-$pid.map

This commit is contained in:
Tillmann Karras 2015-07-08 07:17:28 +02:00
parent c54534ee3b
commit 2559a6f25c
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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';
}
}