summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoBackendBase.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-05-16 16:59:23 -0700
committerPokechu22 <Pokechu022@gmail.com>2022-05-16 16:59:57 -0700
commit3949698acf4637412c4b52fac07bc1c9b32665c5 (patch)
tree43fe7bf3d0d97fd2f48b0c9fc9295c4a75eebc64 /Source/Core/VideoCommon/VideoBackendBase.cpp
parent3950bc4620b659b4ba902a8d8d979dae801b5bd4 (diff)
Verify graphics config validity after populating the backend info
... and refresh the config before populating the backend info, as the config (specifically iAdapter) needs to be set to correctly populate the backend info. Before, the list of valid antialiasing modes was always determined from the first adapter on the list on startup, regardless of the adapter the user selected.
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoBackendBase.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp
index 78e4c7c15d..7136545c25 100644
--- a/Source/Core/VideoCommon/VideoBackendBase.cpp
+++ b/Source/Core/VideoCommon/VideoBackendBase.cpp
@@ -272,11 +272,12 @@ void VideoBackendBase::ActivateBackend(const std::string& name)
void VideoBackendBase::PopulateBackendInfo()
{
- // We refresh the config after initializing the backend info, as system-specific settings
- // such as anti-aliasing, or the selected adapter may be invalid, and should be checked.
+ g_Config.Refresh();
ActivateBackend(Config::Get(Config::MAIN_GFX_BACKEND));
g_video_backend->InitBackendInfo();
- g_Config.Refresh();
+ // We validate the config after initializing the backend info, as system-specific settings
+ // such as anti-aliasing, or the selected adapter may be invalid, and should be checked.
+ g_Config.VerifyValidity();
}
void VideoBackendBase::PopulateBackendInfoFromUI()