mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fix the first TextBatch:set call uploading vertices twice.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user