summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoBackendBase.cpp
diff options
context:
space:
mode:
authorTellowKrinkle <tellowkrinkle@gmail.com>2022-07-13 02:55:54 -0500
committerTellowKrinkle <tellowkrinkle@gmail.com>2022-07-13 02:55:54 -0500
commitf83015649c23c8207420ee59333ac51ac029e89d (patch)
tree3f468c9045ca5a810d1bbc51a8346624806200f6 /Source/Core/VideoCommon/VideoBackendBase.cpp
parent99eef447651d40ed1954ccd5a83557478546face (diff)
VideoCommon: Clear backend_info before populating
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoBackendBase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp
index 3a2eafd025..6028b7b14a 100644
--- a/Source/Core/VideoCommon/VideoBackendBase.cpp
+++ b/Source/Core/VideoCommon/VideoBackendBase.cpp
@@ -264,6 +264,9 @@ void VideoBackendBase::ActivateBackend(const std::string& name)
void VideoBackendBase::PopulateBackendInfo()
{
g_Config.Refresh();
+ // Reset backend_info so if the backend forgets to initialize something it doesn't end up using
+ // a value from the previously used renderer
+ g_Config.backend_info = {};
ActivateBackend(Config::Get(Config::MAIN_GFX_BACKEND));
g_video_backend->InitBackendInfo();
// We validate the config after initializing the backend info, as system-specific settings