]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - jpeg.c
WritePicture: also support png input images :P
[xonotic/darkplaces.git] / jpeg.c
diff --git a/jpeg.c b/jpeg.c
index 74bd708effde51b03e090b5f4e878ceda69af797..b5f513be4048b62187ad516fb8b15112785f1e64 100644 (file)
--- a/jpeg.c
+++ b/jpeg.c
@@ -1032,6 +1032,7 @@ qboolean Image_Compress(const char *imagename, size_t maxsize, void **buf, size_
        CompressedImageCacheItem *i;
 
        JPEG_OpenLibrary (); // for now; LH had the idea of replacing this by a better format
+       PNG_OpenLibrary (); // for loading
 
        // No DLL = no JPEGs
        if (!jpeg_dll)