X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=image_png.c;h=6b226af060d7f4f1eb85276a1ca3f8b08216757c;hb=refs%2Fheads%2FCloudwalk%2Fcmake;hp=f7db48aad8bb8db9e37214584d7c247aa1e5b421;hpb=6eaa7786b5d46e771154ebd7fdd23d53ba7e6265;p=xonotic%2Fdarkplaces.git diff --git a/image_png.c b/image_png.c index f7db48aa..6b226af0 100644 --- a/image_png.c +++ b/image_png.c @@ -172,10 +172,10 @@ 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_FreeLibrary (&png_dll); return false;