diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-08-08 12:17:26 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-08 12:17:26 +1000 |
| commit | 9477c8b0ed834efc3b7cf5b9fcd48caf57611a8a (patch) | |
| tree | 37f8dbe9ac1a4e283f1114d35e03f0c77a403a82 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 2d316196c9b584bf3a97d2b3c32596ae3ee50247 (diff) | |
| parent | 86a651e27f22215752a444a83ae258ae3efd832a (diff) | |
Merge pull request #8293 from lioncash/ref
VideoCommon/TextureCacheBase: Make OnConfigChanged's parameter a const reference
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 2951573908..a4b7c28676 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -134,7 +134,7 @@ void TextureCacheBase::Invalidate() texture_pool.clear(); } -void TextureCacheBase::OnConfigChanged(VideoConfig& config) +void TextureCacheBase::OnConfigChanged(const VideoConfig& config) { if (config.bHiresTextures != backup_config.hires_textures || config.bCacheHiresTextures != backup_config.cache_hires_textures) @@ -152,9 +152,7 @@ void TextureCacheBase::OnConfigChanged(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); |
