From 1baef5c2e19962f55e01fc5c00a15aa70737bed5 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 4 May 2011 05:02:10 +0000 Subject: [PATCH] avoid rendering the glyphs when not needed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11103 d7cf8633-e32d-0410-b094-e92efae38249 --- ft2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2