From 817dd1b36cd33c36f8250585f2a5b93dd14dfbf2 Mon Sep 17 00:00:00 2001 From: blub Date: Sat, 2 Jan 2010 17:13:23 +0000 Subject: [PATCH] load the freetype library in Font_Init already, and don't call Font_Init twice git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9770 d7cf8633-e32d-0410-b094-e92efae38249 --- ft2.c | 2 ++ gl_draw.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ft2.c b/ft2.c index dc3476a0..ee84d5a6 100644 --- a/ft2.c +++ b/ft2.c @@ -263,6 +263,8 @@ void Font_Init(void) Cvar_RegisterVariable(&r_font_antialias); Cvar_RegisterVariable(&r_font_kerning); Cvar_RegisterVariable(&developer_font); + // let's open it at startup already + Font_OpenLibrary(); } /* diff --git a/gl_draw.c b/gl_draw.c index 425c5159..689a8614 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -860,7 +860,6 @@ void GL_Draw_Init (void) for(i = 0, j = 0; i < MAX_USERFONTS; ++i) if(!FONT_USER[i].title[0]) dpsnprintf(FONT_USER[i].title, sizeof(FONT_USER[i].title), "user%d", j++); - Font_Init(); } void _DrawQ_Setup(void) -- 2.39.2