fix [#26442] blender crash when turning off antialiasing fonts
[blender.git] / source / blender / blenfont / intern / blf_glyph.c
index b9154951fb129ddfcef8973edee1a3bebbb60f1f..e165012f43e2c304dde9b7c309430b77b3e92cbf 100644 (file)
@@ -135,6 +135,8 @@ void blf_glyph_cache_clear(FontBLF *font)
                        }
                }
        }
+
+       memset(font->glyph_ascii_table, 0, sizeof(font->glyph_ascii_table));
 }
 
 void blf_glyph_cache_free(GlyphCacheBLF *gc)