git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10176
d7cf8633-e32d-0410-b094-
e92efae38249
extern cvar_t vid_pixelheight;
extern cvar_t scr_screenshot_jpeg;
extern cvar_t scr_screenshot_jpeg_quality;
+extern cvar_t scr_screenshot_png;
extern cvar_t scr_screenshot_gammaboost;
extern cvar_t scr_screenshot_name;
// Disable JPEG screenshots if the DLL isn't loaded
if (! JPEG_OpenLibrary ())
Cvar_SetValueQuick (&scr_screenshot_jpeg, 0);
- // TODO: support png screenshots?
- PNG_OpenLibrary ();
+ if (! PNG_OpenLibrary ())
+ Cvar_SetValueQuick (&scr_screenshot_png, 0);
}
static void r_textures_shutdown(void)
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)