mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoCommon/TextureCacheBase: Make OnConfigChanged's parameter a const reference
This reference isn't actually modified within this function
This commit is contained in:
@ -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)
|
||||||
|
@ -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.
|
||||||
|
Reference in New Issue
Block a user