]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image.c
added cl_capturevideo_rawyv12 mode, and cl_screenshot_gamma (defaults to 2.2)
[xonotic/darkplaces.git] / image.c
diff --git a/image.c b/image.c
index 3ecbea398671fe3ecb5310f5cae3f1183e5fdf1b..7ef2326b0c5af4ea41f57a7cba31f5588920da49 100644 (file)
--- a/image.c
+++ b/image.c
@@ -931,6 +931,7 @@ void Image_WriteTGARGBA (const char *filename, int width, int height, const qbyt
        buffer[14] = (height >> 0) & 0xFF;
        buffer[15] = (height >> 8) & 0xFF;
        buffer[16] = 32;        // pixel size
+       buffer[17] = 8; // transparent flag? (seems to be needed by gimp)
 
        // swap rgba to bgra and flip upside down
        out = buffer + 18;