TexCache: don't invalidate efb copys because of config changes

We'll loose data on invalidating them. So just keep them until a new copy is done.
A wrong scaled copy is better than no copy if the game doesn't creates a new one.
This commit is contained in:
degasus 2014-05-16 18:41:01 +02:00
parent 90c6ebfd86
commit dddcea5a9a
2 changed files with 1 additions and 13 deletions

View File

@ -116,11 +116,7 @@ void TextureCache::OnConfigChanged(VideoConfig& config)
} }
// TODO: Probably shouldn't clear all render targets here, just mark them dirty or something. // TODO: Probably shouldn't clear all render targets here, just mark them dirty or something.
if (config.bEFBCopyCacheEnable != backup_config.s_copy_cache_enable || // TODO: not sure if this is needed? if (config.bEFBCopyCacheEnable != backup_config.s_copy_cache_enable) // TODO: not sure if this is needed?
config.bCopyEFBToTexture != backup_config.s_copy_efb_to_texture ||
config.bCopyEFBScaled != backup_config.s_copy_efb_scaled ||
config.bEFBCopyEnable != backup_config.s_copy_efb ||
config.iEFBScale != backup_config.s_efb_scale)
{ {
g_texture_cache->ClearRenderTargets(); g_texture_cache->ClearRenderTargets();
} }
@ -134,10 +130,6 @@ void TextureCache::OnConfigChanged(VideoConfig& config)
} }
backup_config.s_colorsamples = config.iSafeTextureCache_ColorSamples; backup_config.s_colorsamples = config.iSafeTextureCache_ColorSamples;
backup_config.s_copy_efb_to_texture = config.bCopyEFBToTexture;
backup_config.s_copy_efb_scaled = config.bCopyEFBScaled;
backup_config.s_copy_efb = config.bEFBCopyEnable;
backup_config.s_efb_scale = config.iEFBScale;
backup_config.s_texfmt_overlay = config.bTexFmtOverlayEnable; backup_config.s_texfmt_overlay = config.bTexFmtOverlayEnable;
backup_config.s_texfmt_overlay_center = config.bTexFmtOverlayCenter; backup_config.s_texfmt_overlay_center = config.bTexFmtOverlayCenter;
backup_config.s_hires_textures = config.bHiresTextures; backup_config.s_hires_textures = config.bHiresTextures;

View File

@ -134,10 +134,6 @@ private:
static struct BackupConfig static struct BackupConfig
{ {
int s_colorsamples; int s_colorsamples;
bool s_copy_efb_to_texture;
bool s_copy_efb_scaled;
bool s_copy_efb;
int s_efb_scale;
bool s_texfmt_overlay; bool s_texfmt_overlay;
bool s_texfmt_overlay_center; bool s_texfmt_overlay_center;
bool s_hires_textures; bool s_hires_textures;