Skip to content

Commit

Permalink
Fix the first TextBatch:set call uploading vertices twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Jun 19, 2024
1 parent 4c778fa commit 5112345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/graphics/TextBatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5112345

Please sign in to comment.