From e923ef5d3acbb0a1596094afdf836f02ae554480 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Tue, 14 Jan 2020 14:22:03 +0100 Subject: [PATCH] Add missing M_FinishPNG call --- source/common/rendering/gl/renderer/gl_renderer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/common/rendering/gl/renderer/gl_renderer.cpp b/source/common/rendering/gl/renderer/gl_renderer.cpp index 9dc164d50..560f8cbe4 100644 --- a/source/common/rendering/gl/renderer/gl_renderer.cpp +++ b/source/common/rendering/gl/renderer/gl_renderer.cpp @@ -239,6 +239,7 @@ void FGLRenderer::WriteSavePic ( FileWriter *file, int width, int height) uint8_t* scr = (uint8_t*)Xmalloc(numpixels * 3); glReadPixels(0, 0, width, height, GL_RGB, GL_UNSIGNED_BYTE, scr); M_CreatePNG(file, scr + ((height - 1) * width * 3), nullptr, SS_RGB, width, height, -width * 3, vid_gamma); + M_FinishPNG(file); Xfree(scr); }