From: divverent Date: Wed, 4 May 2011 05:02:10 +0000 (+0000) Subject: avoid rendering the glyphs when not needed X-Git-Tag: xonotic-v0.6.0~163^2~443 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1baef5c2e19962f55e01fc5c00a15aa70737bed5;p=xonotic%2Fdarkplaces.git avoid rendering the glyphs when not needed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11103 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/ft2.c b/ft2.c index 4a220cd9..726e5127 100644 --- 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)