X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=ft2.c;h=b7421b218c3f79abe5ebd11039c51510ea868ade;hb=88ad71ac84dcc0aac18b73e622af688c2230ffc2;hp=0b738108edce2055dcc64fdebf4ed9506ab0f95c;hpb=f13419f00e3f8335e9a25498560a433597f28f50;p=xonotic%2Fdarkplaces.git 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;