Fix GE frame dumps, no longer produces only 1kb files.

Broke in ca94de8d4b
This commit is contained in:
Henrik Rydgård 2023-12-28 20:27:32 +01:00
parent 80c6dbfdfe
commit acbd32c5f1

View File

@ -619,6 +619,7 @@ 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,7 +631,6 @@ static void FinishRecording() {
lastEdramTrans = 0x400;
if (writeCallback) {
Path filename = WriteRecording();
writeCallback(filename);
}
writeCallback = nullptr;