mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Merge pull request #8293 from lioncash/ref
VideoCommon/TextureCacheBase: Make OnConfigChanged's parameter a const reference
This commit is contained in:
commit
9477c8b0ed
2 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue