From e10b53def34a0b615bed405708ae9986f0ee6c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 10 Dec 2021 21:00:45 +0100 Subject: [PATCH] Fix an ordering issue causing us to hit some asserts --- UI/EmuScreen.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index c907638f4a..e92547f9fa 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -1413,9 +1413,11 @@ void EmuScreen::render() { break; } + PSP_EndHostFrame(); + + // This must happen after PSP_EndHostFrame so that things like push buffers are end-frame'd before we start destroying stuff. checkPowerDown(); - PSP_EndHostFrame(); if (invalid_) return;