]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - ft2.c
avoid rendering the glyphs when not needed
[xonotic/darkplaces.git] / ft2.c
diff --git a/ft2.c b/ft2.c
index 4a220cd948e710700176a4081880ed8157100f9a..726e5127c205fd1e94d8bbce582f1f1faebf8e69 100644 (file)
--- a/ft2.c
+++ b/ft2.c
@@ -1235,7 +1235,7 @@ static qboolean Font_LoadMap(ft2_font_t *font, ft2_font_map_t *mapstart, Uchar _
        map->sfy = mapstart->sfy;
 
        pitch = map->glyphSize * FONT_CHARS_PER_LINE * bytesPerPixel;
-//     if (map->pic->tex == r_texture_notexture)
+       if (map->pic->tex == r_texture_notexture)
        {
                data = (unsigned char *)Mem_Alloc(font_mempool, (FONT_CHAR_LINES * map->glyphSize) * pitch);
                if (!data)