]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
added png support patch from [515] (had to rewrite most of it though)
[xonotic/darkplaces.git] / gl_textures.c
index 9fe2744773616064e3eba572cc3793385a2a1c86..b59ff8189fd7f719339e2d6db921b6dfe1b5728f 100644 (file)
@@ -2,6 +2,7 @@
 #include "quakedef.h"
 #include "image.h"
 #include "jpeg.h"
+#include "image_png.h"
 
 cvar_t gl_max_size = {CVAR_SAVE, "gl_max_size", "2048"};
 cvar_t gl_max_scrapsize = {CVAR_SAVE, "gl_max_scrapsize", "256"};
@@ -506,6 +507,8 @@ static void r_textures_start(void)
        // Disable JPEG screenshots if the DLL isn't loaded
        if (! JPEG_OpenLibrary ())
                Cvar_SetValueQuick (&scr_screenshot_jpeg, 0);
+       // TODO: support png screenshots?
+       PNG_OpenLibrary ();
 }
 
 static void r_textures_shutdown(void)