Fix the first TextBatch:set call uploading vertices twice.

This commit is contained in:
Sasha Szpakowski
2024-06-18 22:19:40 -03:00
parent 4c778fa878
commit 5112345893
+1 -1
View File
@@ -36,7 +36,7 @@ TextBatch::TextBatch(Font *font, const std::vector<love::font::ColoredString> &t
, vertexData(nullptr)
, modifiedVertices()
, vertOffset(0)
, textureCacheID((uint32) -1)
, textureCacheID(font->getTextureCacheID())
{
set(text);
}