Allow EmuScreen to run behind the DevMenu popup

This commit is contained in:
Henrik Rydgård committed 2023-12-18 12:59:18 +01:00
1 parent 311b11c704
commit ef149bd9f3
1 file changed
+1 -1
+1 -1
View File
@@ -1479,7 +1479,7 @@ ScreenRenderFlags EmuScreen::render(ScreenRenderMode mode) {
if (mode & ScreenRenderMode::TOP) {
System_Notify(SystemNotification::KEEP_SCREEN_AWAKE);
} else if (!g_Config.bRunBehindPauseMenu) {
} else if (!g_Config.bRunBehindPauseMenu && strcmp(screenManager()->topScreen()->tag(), "DevMenu") != 0) {
// Not on top. Let's not execute, only draw the image.
draw->BindFramebufferAsRenderTarget(nullptr, { RPAction::CLEAR, RPAction::DONT_CARE, RPAction::DONT_CARE }, "EmuScreen_Stepping");
// Just to make sure.