Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenfont / intern / blf_glyph.c
index b4d29b5d61e3d94552e42f385993a9c46cf147a5..f99f1bf0d6dbe45a9d26180e859244215651666a 100644 (file)
@@ -135,6 +135,7 @@ void blf_glyph_cache_clear(FontBLF *font)
        while ((gc = BLI_pophead(&font->cache))) {
                blf_glyph_cache_free(gc);
        }
+       font->glyph_cache = NULL;
 }
 
 void blf_glyph_cache_free(GlyphCacheBLF *gc)