VideoCommon/TextureCacheBase: Make OnConfigChanged's parameter a const reference

This reference isn't actually modified within this function
This commit is contained in:
Lioncash
2019-08-04 22:31:25 -04:00
parent 7f6abfb0bf
commit 7d017be666
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ void TextureCacheBase::Invalidate()
texture_pool.clear(); texture_pool.clear();
} }
void TextureCacheBase::OnConfigChanged(VideoConfig& config) void TextureCacheBase::OnConfigChanged(const VideoConfig& config)
{ {
if (config.bHiresTextures != backup_config.hires_textures || if (config.bHiresTextures != backup_config.hires_textures ||
config.bCacheHiresTextures != backup_config.cache_hires_textures) config.bCacheHiresTextures != backup_config.cache_hires_textures)

View File

@ -204,7 +204,7 @@ public:
bool Initialize(); bool Initialize();
void OnConfigChanged(VideoConfig& config); void OnConfigChanged(const VideoConfig& config);
// Removes textures which aren't used for more than TEXTURE_KILL_THRESHOLD frames, // Removes textures which aren't used for more than TEXTURE_KILL_THRESHOLD frames,
// frameCount is the current frame number. // frameCount is the current frame number.