mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 21:46:23 +02:00
Free flipbuffer
This commit is contained in:
1 parent
f81ec4ce65
commit
e898200c19
1 file changed
+1
@@ -241,6 +241,7 @@ bool TakeGameScreenshot(const char *filename, ScreenshotFormat fmt, ScreenshotTy
|
||||
// TODO: Handle other formats (e.g. Direct3D, raw framebuffers.)
|
||||
QImage image(buffer, buf.GetStride(), buf.GetHeight(), QImage::Format_RGB888);
|
||||
success = image.save(filename, fmt == SCREENSHOT_PNG ? "PNG" : "JPG");
|
||||
delete [] flipbuffer;
|
||||
}
|
||||
#else
|
||||
if (success) {
|
||||
|
||||
Reference in new issue
Block a user