From f83015649c23c8207420ee59333ac51ac029e89d Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Wed, 13 Jul 2022 02:55:54 -0500 Subject: [PATCH] VideoCommon: Clear backend_info before populating --- Source/Core/VideoCommon/VideoBackendBase.cpp | 3 +++ 1 file changed, 3 insertions(+) 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