mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
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.
This commit is contained in:
@ -44,7 +44,12 @@ void VideoConfig::Refresh()
|
||||
// invalid values. Instead, pause emulation first, which will flush the video thread,
|
||||
// update the config and correct it, then resume emulation, after which the video
|
||||
// thread will detect the config has changed and act accordingly.
|
||||
Config::AddConfigChangedCallback([]() { Core::RunAsCPUThread([]() { g_Config.Refresh(); }); });
|
||||
Config::AddConfigChangedCallback([]() {
|
||||
Core::RunAsCPUThread([]() {
|
||||
g_Config.Refresh();
|
||||
g_Config.VerifyValidity();
|
||||
});
|
||||
});
|
||||
s_has_registered_callback = true;
|
||||
}
|
||||
|
||||
@ -140,8 +145,6 @@ void VideoConfig::Refresh()
|
||||
bFastTextureSampling = Config::Get(Config::GFX_HACK_FAST_TEXTURE_SAMPLING);
|
||||
|
||||
bPerfQueriesEnable = Config::Get(Config::GFX_PERF_QUERIES_ENABLE);
|
||||
|
||||
VerifyValidity();
|
||||
}
|
||||
|
||||
void VideoConfig::VerifyValidity()
|
||||
|
Reference in New Issue
Block a user