mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
Make arbitrary mipmap detection toggle invalidate the texture cache
We want this setting to invalidate the cache because it may affect the appearance of textures in the rendered scene, therefore one would expect changing it while the game is running to have the expected effect immediately.
This commit is contained in:
@ -126,7 +126,8 @@ void TextureCacheBase::OnConfigChanged(VideoConfig& config)
|
||||
config.bTexFmtOverlayCenter != backup_config.texfmt_overlay_center ||
|
||||
config.bHiresTextures != backup_config.hires_textures ||
|
||||
config.bEnableGPUTextureDecoding != backup_config.gpu_texture_decoding ||
|
||||
config.bDisableCopyToVRAM != backup_config.disable_vram_copies)
|
||||
config.bDisableCopyToVRAM != backup_config.disable_vram_copies ||
|
||||
config.bArbitraryMipmapDetection != backup_config.arbitrary_mipmap_detection)
|
||||
{
|
||||
Invalidate();
|
||||
|
||||
@ -230,6 +231,7 @@ void TextureCacheBase::SetBackupConfig(const VideoConfig& config)
|
||||
backup_config.efb_mono_depth = config.bStereoEFBMonoDepth;
|
||||
backup_config.gpu_texture_decoding = config.bEnableGPUTextureDecoding;
|
||||
backup_config.disable_vram_copies = config.bDisableCopyToVRAM;
|
||||
backup_config.arbitrary_mipmap_detection = config.bArbitraryMipmapDetection;
|
||||
}
|
||||
|
||||
TextureCacheBase::TCacheEntry*
|
||||
|
Reference in New Issue
Block a user