make screenshots rightside up again (or rather, upside down like TGA wants, which...
[xonotic/darkplaces.git] / gl_screen.c
index 722dfa60b403d09ed3e941db95be22d0478380c5..045afa6e910341a1ab8ab0d04026b811473dd2e6 100644 (file)
@@ -617,7 +617,7 @@ void SCR_ScreenShot_f (void)
 
        buffer = malloc(glwidth*glheight*3);
        glReadPixels (glx, gly, glwidth, glheight, GL_RGB, GL_UNSIGNED_BYTE, buffer); 
-       Image_WriteTGARGB(filename, glwidth, glheight, buffer);
+       Image_WriteTGARGB_preflipped(filename, glwidth, glheight, buffer);
 
        free (buffer);
        Con_Printf ("Wrote %s\n", filename);