[GPU/Common/DX9/GLES/Software] Object out of scope optimization for better codegeneration (lower level scope)

This commit is contained in:
Herman Semenov
2023-12-20 12:34:34 +03:00
parent 2a31f8c6c0
commit ca94de8d4b
8 changed files with 15 additions and 11 deletions
+3 -2
View File
@@ -619,7 +619,6 @@ void ClearCallback() {
static void FinishRecording() {
// We're done - this was just to write the result out.
Path filename = WriteRecording();
commands.clear();
pushbuf.clear();
lastVRAM.clear();
@@ -630,8 +629,10 @@ static void FinishRecording() {
flipFinishAt = -1;
lastEdramTrans = 0x400;
if (writeCallback)
if (writeCallback) {
Path filename = WriteRecording();
writeCallback(filename);
}
writeCallback = nullptr;
}