X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=image_png.c;fp=image_png.c;h=6b226af060d7f4f1eb85276a1ca3f8b08216757c;hb=575ef3474f70270bc925aa4a7e235399d79ea2bf;hp=5562cedaf7f275194db882857224c611971c5329;hpb=b58f621f13f27ef571a7fd9cdc7fc7314254bd80;p=xonotic%2Fdarkplaces.git diff --git a/image_png.c b/image_png.c index 5562ceda..6b226af0 100644 --- a/image_png.c +++ b/image_png.c @@ -172,12 +172,12 @@ qbool PNG_OpenLibrary (void) return true; // Load the DLL - if(!Sys_LoadLibrary (dllnames, &png_dll, pngfuncs)) + if(!Sys_LoadDependency (dllnames, &png_dll, pngfuncs)) return false; if(qpng_access_version_number() / 100 >= 104) - if(!Sys_LoadLibrary (dllnames, &png14_dll, png14funcs)) + if(!Sys_LoadDependency (dllnames, &png14_dll, png14funcs)) { - Sys_UnloadLibrary (&png_dll); + Sys_FreeLibrary (&png_dll); return false; } return true; @@ -193,8 +193,8 @@ Unload the PNG DLL */ void PNG_CloseLibrary (void) { - Sys_UnloadLibrary (&png14_dll); - Sys_UnloadLibrary (&png_dll); + Sys_FreeLibrary (&png14_dll); + Sys_FreeLibrary (&png_dll); } /*