]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
avoid rendering the glyphs when not needed
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 May 2011 05:02:10 +0000 (05:02 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 May 2011 05:02:10 +0000 (05:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11103 d7cf8633-e32d-0410-b094-e92efae38249

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)