]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image_png.c
fix crashes when recursing portals on maps with some bogus leafs (where
[xonotic/darkplaces.git] / image_png.c
index d7ee8595cca680a98736a8ac3047b82be1252667..2dac76faddd5eedc2e28d8e764b75051e55667c1 100644 (file)
@@ -121,14 +121,7 @@ qboolean PNG_OpenLibrary (void)
                return true;
 
        // Load the DLL
-       if (! Sys_LoadLibrary (dllnames, &png_dll, pngfuncs))
-       {
-               Con_Printf ("PNG support disabled\n");
-               return false;
-       }
-
-       Con_Printf ("PNG support enabled\n");
-       return true;
+       return Sys_LoadLibrary (dllnames, &png_dll, pngfuncs);
 }