diff --git a/src/modules/graphics/Font.cpp b/src/modules/graphics/Font.cpp index 8c9c27f5c..a746a431a 100644 --- a/src/modules/graphics/Font.cpp +++ b/src/modules/graphics/Font.cpp @@ -122,6 +122,8 @@ Font::TextureSize Font::getNextTextureSize() const bool Font::loadVolatile() { textureCacheID++; + glyphs.clear(); + images.clear(); createTexture(); return true; } @@ -183,6 +185,8 @@ void Font::createTexture() void Font::unloadVolatile() { + glyphs.clear(); + images.clear(); } love::font::GlyphData *Font::getRasterizerGlyphData(uint32 glyph)