From f1de985304e6394b32b56d17c9b944ca747324bf Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 2 Feb 2022 20:43:49 +1000 Subject: [PATCH] GS: Reset/restore API state when changing OSD scale Closes https://github.com/PCSX2/pcsx2/issues/5451 --- pcsx2/GS/GS.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcsx2/GS/GS.cpp b/pcsx2/GS/GS.cpp index 7c77632145..e44cfa15e9 100644 --- a/pcsx2/GS/GS.cpp +++ b/pcsx2/GS/GS.cpp @@ -715,7 +715,11 @@ void GSUpdateConfig(const Pcsx2Config::GSOptions& new_config) // Handle OSD scale changes by pushing a window resize through. if (new_config.OsdScale != old_config.OsdScale) + { + g_gs_device->ResetAPIState(); Host::ResizeHostDisplay(display->GetWindowWidth(), display->GetWindowHeight(), display->GetWindowScale()); + g_gs_device->RestoreAPIState(); + } // Options which need a full teardown/recreate. if (!GSConfig.RestartOptionsAreEqual(old_config))