summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@users.noreply.github.com>2018-05-04 12:01:29 +1000
committerGitHub <noreply@github.com>2018-05-04 12:01:29 +1000
commita5e410b7c9e07ab7d34e465c27c0f783a3b09675 (patch)
tree30009c59bcbe27b411a245b36f8933231666f412 /Source/Core/VideoCommon/TextureCacheBase.cpp
parent54a6b0f50a2fbd6f1f85f711beb5e515f3d9e763 (diff)
parentd4f6c86eecbaaa7f1bd8884dd40511c055c0fbab (diff)
Merge pull request #6744 from stenzek/ui-disable-vram-copies
UI: Add Disable EFB Copies to VRAM to Advanced Options
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index f0b1392531..345770bba2 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -125,7 +125,8 @@ void TextureCacheBase::OnConfigChanged(VideoConfig& config)
config.bTexFmtOverlayEnable != backup_config.texfmt_overlay ||
config.bTexFmtOverlayCenter != backup_config.texfmt_overlay_center ||
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();
@@ -228,6 +229,7 @@ void TextureCacheBase::SetBackupConfig(const VideoConfig& config)
backup_config.stereo_3d = config.stereo_mode != StereoMode::Off;
backup_config.efb_mono_depth = config.bStereoEFBMonoDepth;
backup_config.gpu_texture_decoding = config.bEnableGPUTextureDecoding;
+ backup_config.disable_vram_copies = config.bDisableCopyToVRAM;
}
TextureCacheBase::TCacheEntry*