X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=ft2.c;h=b7421b218c3f79abe5ebd11039c51510ea868ade;hp=0b738108edce2055dcc64fdebf4ed9506ab0f95c;hb=6ff5802848663ece807c1a425da91d7630a8a036;hpb=f13419f00e3f8335e9a25498560a433597f28f50 diff --git a/ft2.c b/ft2.c index 0b738108..b7421b21 100644 --- a/ft2.c +++ b/ft2.c @@ -327,7 +327,7 @@ void Font_CloseLibrary (void) font_ft2lib = NULL; } #ifndef DP_FREETYPE_STATIC - Sys_UnloadLibrary (&ft2_dll); + Sys_FreeLibrary (&ft2_dll); #endif pp.buf = NULL; } @@ -367,7 +367,7 @@ qbool Font_OpenLibrary (void) return true; // Load the DLL - if (!Sys_LoadLibrary (dllnames, &ft2_dll, ft2funcs)) + if (!Sys_LoadDependency (dllnames, &ft2_dll, ft2funcs)) return false; #endif return true;