mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
VideoCommon/TextureCacheBase: Remove dependence on global variables from OnConfigChanged()
The active config will always be passed as the reference parameter, we can make use of the parameter instead of accessing the global variable.
This commit is contained in:
parent
7d017be666
commit
86a651e27f
1 changed files with 1 additions and 3 deletions
|
@ -155,9 +155,7 @@ void TextureCacheBase::OnConfigChanged(const VideoConfig& config)
|
|||
config.bArbitraryMipmapDetection != backup_config.arbitrary_mipmap_detection)
|
||||
{
|
||||
Invalidate();
|
||||
|
||||
TexDecoder_SetTexFmtOverlayOptions(g_ActiveConfig.bTexFmtOverlayEnable,
|
||||
g_ActiveConfig.bTexFmtOverlayCenter);
|
||||
TexDecoder_SetTexFmtOverlayOptions(config.bTexFmtOverlayEnable, config.bTexFmtOverlayCenter);
|
||||
}
|
||||
|
||||
SetBackupConfig(config);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue