Skip to content
Permalink
Browse files
Merge pull request #10842 from tellowkrinkle/ClearBackendInfo
VideoCommon: Clear backend_info before populating
  • Loading branch information
JMC47 committed Jul 13, 2022
2 parents 385f010 + f830156 commit 5663a44
Showing 1 changed file with 3 additions and 0 deletions.
@@ -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

0 comments on commit 5663a44

Please sign in to comment.