mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 06:29:00 +01: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
@ -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…
x
Reference in New Issue
Block a user