]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.c
Tomaz made cl_avidemo screenshot saving use no mallocs
[xonotic/darkplaces.git] / gl_backend.c
index 49ef7342c8d9865d97d7534e5d87bf9c3c943c8a..889aa0ef4f2ce9f530225ab2204dd75a6d221ae7 100644 (file)
@@ -1190,7 +1190,7 @@ void R_Mesh_Draw_ShowTris(int numverts, int numtriangles, const int *elements)
 ==============================================================================
 */
 
-qboolean SCR_ScreenShot(char *filename, qbyte *buffer1, qbyte *buffer2, int x, int y, int width, int height, qboolean flipx, qboolean flipy, qboolean flipdiagonal, qboolean jpeg)
+qboolean SCR_ScreenShot(char *filename, qbyte *buffer1, qbyte *buffer2, qbyte *buffer3, int x, int y, int width, int height, qboolean flipx, qboolean flipy, qboolean flipdiagonal, qboolean jpeg)
 {
        int     indices[3] = {0,1,2};
        qboolean ret;
@@ -1206,7 +1206,7 @@ qboolean SCR_ScreenShot(char *filename, qbyte *buffer1, qbyte *buffer2, int x, i
        if (jpeg)
                ret = JPEG_SaveImage_preflipped (filename, width, height, buffer2);
        else
-               ret = Image_WriteTGARGB_preflipped (filename, width, height, buffer2);
+               ret = Image_WriteTGARGB_preflipped (filename, width, height, buffer2, buffer3);
 
        return ret;
 }