Skip to content
Permalink
Browse files

Merge pull request #8293 from lioncash/ref

 VideoCommon/TextureCacheBase: Make OnConfigChanged's parameter a const reference
  • Loading branch information...
stenzek committed Aug 8, 2019
2 parents 2d31619 + 86a651e commit 9477c8b0ed834efc3b7cf5b9fcd48caf57611a8a
Showing with 3 additions and 5 deletions.
  1. +2 −4 Source/Core/VideoCommon/TextureCacheBase.cpp
  2. +1 −1 Source/Core/VideoCommon/TextureCacheBase.h
@@ -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);
@@ -204,7 +204,7 @@ class TextureCacheBase

bool Initialize();

void OnConfigChanged(VideoConfig& config);
void OnConfigChanged(const VideoConfig& config);

// Removes textures which aren't used for more than TEXTURE_KILL_THRESHOLD frames,
// frameCount is the current frame number.

0 comments on commit 9477c8b

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