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 committed 2019-08-04 22:33:18 -04:00
1 parent 7d017be666
commit 86a651e27f
1 file changed
+1 -3
+1 -3
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);