TextureCacheBase: Make "disable vram copies" part of the active config
This commit is contained in:
parent
ef98a21735
commit
0152f63655
|
@ -125,7 +125,8 @@ void TextureCacheBase::OnConfigChanged(VideoConfig& config)
|
||||||
config.bTexFmtOverlayEnable != backup_config.texfmt_overlay ||
|
config.bTexFmtOverlayEnable != backup_config.texfmt_overlay ||
|
||||||
config.bTexFmtOverlayCenter != backup_config.texfmt_overlay_center ||
|
config.bTexFmtOverlayCenter != backup_config.texfmt_overlay_center ||
|
||||||
config.bHiresTextures != backup_config.hires_textures ||
|
config.bHiresTextures != backup_config.hires_textures ||
|
||||||
config.bEnableGPUTextureDecoding != backup_config.gpu_texture_decoding)
|
config.bEnableGPUTextureDecoding != backup_config.gpu_texture_decoding ||
|
||||||
|
config.bDisableCopyToVRAM != backup_config.disable_vram_copies)
|
||||||
{
|
{
|
||||||
Invalidate();
|
Invalidate();
|
||||||
|
|
||||||
|
@ -228,6 +229,7 @@ void TextureCacheBase::SetBackupConfig(const VideoConfig& config)
|
||||||
backup_config.stereo_3d = config.stereo_mode != StereoMode::Off;
|
backup_config.stereo_3d = config.stereo_mode != StereoMode::Off;
|
||||||
backup_config.efb_mono_depth = config.bStereoEFBMonoDepth;
|
backup_config.efb_mono_depth = config.bStereoEFBMonoDepth;
|
||||||
backup_config.gpu_texture_decoding = config.bEnableGPUTextureDecoding;
|
backup_config.gpu_texture_decoding = config.bEnableGPUTextureDecoding;
|
||||||
|
backup_config.disable_vram_copies = config.bDisableCopyToVRAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
TextureCacheBase::TCacheEntry*
|
TextureCacheBase::TCacheEntry*
|
||||||
|
|
|
@ -350,6 +350,7 @@ private:
|
||||||
bool stereo_3d;
|
bool stereo_3d;
|
||||||
bool efb_mono_depth;
|
bool efb_mono_depth;
|
||||||
bool gpu_texture_decoding;
|
bool gpu_texture_decoding;
|
||||||
|
bool disable_vram_copies;
|
||||||
};
|
};
|
||||||
BackupConfig backup_config = {};
|
BackupConfig backup_config = {};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue