Skip to content
Permalink
Browse files

VideoCommon/TextureCacheBase: Remove dependence on global variables f…

…rom 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.
  • Loading branch information...
lioncash committed Aug 5, 2019
1 parent 7d017be commit 86a651e27f22215752a444a83ae258ae3efd832a
Showing with 1 addition and 3 deletions.
  1. +1 −3 Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -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);

0 comments on commit 86a651e

Please sign in to comment.
You can’t perform that action at this time.