mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Add missing M_FinishPNG call
This commit is contained in:
parent
a8614c89dd
commit
e923ef5d3a
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue