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:
parent
90c6ebfd86
commit
dddcea5a9a
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue