diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-08-04 22:33:15 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-08-04 22:33:18 -0400 |
| commit | 86a651e27f22215752a444a83ae258ae3efd832a (patch) | |
| tree | dd5e89625b8a296e62e40c07be9569c6da5fa3df /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 7d017be66691bf4ac633d6c75f224a0814e1d049 (diff) | |
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.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 3e42f042ba..5d18eafbc3 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/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); |
