Skip to content
Permalink
Browse files

VideoCommon/TextureCacheBase: Make OnConfigChanged's parameter a cons…

…t reference

This reference isn't actually modified within this function
  • Loading branch information...
lioncash committed Aug 5, 2019
1 parent 7f6abfb commit 7d017be66691bf4ac633d6c75f224a0814e1d049
Showing with 2 additions and 2 deletions.
  1. +1 −1 Source/Core/VideoCommon/TextureCacheBase.cpp
  2. +1 −1 Source/Core/VideoCommon/TextureCacheBase.h
@@ -137,7 +137,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)
@@ -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 7d017be

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