Fix some reset crashes.

Part of #21223, reported in #21228
This commit is contained in:
Henrik Rydgård committed 2026-02-09 19:01:18 +01:00
1 parent 77815c51e5
commit d06e5733a5
1 file changed
+3 -2
+3 -2
View File
@@ -1596,11 +1596,12 @@ ScreenRenderFlags EmuScreen::PreRender(ScreenRenderMode mode) {
using namespace Draw;
skipBufferEffects_ = g_Config.bSkipBufferEffects;
if (!skipBufferEffects_) {
if (!skipBufferEffects_ && PSP_IsInited()) {
if (ShouldRunEmulation(mode)) {
// We need to run emulation here, and perform all the normal render passes.
return RunEmulation(false);
} else {
} else if (gpu) {
// Need to check for gpu here, we might be in reset.
const DeviceOrientation orientation = GetDeviceOrientation();
const DisplayLayoutConfig &displayLayoutConfig = g_Config.GetDisplayLayoutConfig(orientation);
// We run just the post shaders.