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:
Lioncash 2019-08-04 22:33:15 -04:00
parent 7d017be666
commit 86a651e27f

View File

@ -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);