mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 19:58:36 +01:00
Fix ordering problem with screenshots that was causing crashes.
Fixes #17781
This commit is contained in:
1 parent
18b0f3be5d
commit
797f88bf31
4 files changed
+19
-16
No files matched your search
+3
-2
@@ -359,8 +359,8 @@ bool TakeGameScreenshot(const Path &filename, ScreenshotFormat fmt, ScreenshotTy
|
||||
return false;
|
||||
}
|
||||
|
||||
u8 *flipbuffer = nullptr;
|
||||
if (success) {
|
||||
u8 *flipbuffer = nullptr;
|
||||
const u8 *buffer = ConvertBufferToScreenshot(buf, false, flipbuffer, w, h);
|
||||
success = buffer != nullptr;
|
||||
if (success) {
|
||||
@@ -371,12 +371,13 @@ bool TakeGameScreenshot(const Path &filename, ScreenshotFormat fmt, ScreenshotTy
|
||||
|
||||
success = Save888RGBScreenshot(filename, fmt, buffer, w, h);
|
||||
}
|
||||
delete[] flipbuffer;
|
||||
}
|
||||
delete [] flipbuffer;
|
||||
|
||||
if (!success) {
|
||||
ERROR_LOG(IO, "Failed to write screenshot.");
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user