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); }