From 51123458938138579803851f62b7a72454f33a20 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Tue, 18 Jun 2024 22:19:40 -0300 Subject: [PATCH] Fix the first TextBatch:set call uploading vertices twice. --- src/modules/graphics/TextBatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/TextBatch.cpp b/src/modules/graphics/TextBatch.cpp index 944d9ccb7..d809418fc 100644 --- a/src/modules/graphics/TextBatch.cpp +++ b/src/modules/graphics/TextBatch.cpp @@ -36,7 +36,7 @@ TextBatch::TextBatch(Font *font, const std::vector &t , vertexData(nullptr) , modifiedVertices() , vertOffset(0) - , textureCacheID((uint32) -1) + , textureCacheID(font->getTextureCacheID()) { set(text); }