Merge pull request #2723 from Tilka/perf_map

VertexLoader: avoid empty lines in perf-$pid.map
This commit is contained in:
flacs 2015-07-08 08:01:23 +02:00
commit 761cb6a99a
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';
}
}