Instead of invalidating texcache whenever the graphics configuration dialog gets opened, clean up textures on configuration changes.

This commit is contained in:
NeoBrainX
2012-05-28 11:31:37 +02:00
parent 30de244050
commit 8d30ac462a
8 changed files with 61 additions and 24 deletions

View File

@ -1437,11 +1437,8 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
GL_REPORT_ERRORD();
g_Config.iSaveTargetId = 0;
// reload textures if these settings changed
if (g_Config.bCopyEFBToTexture != g_ActiveConfig.bCopyEFBToTexture)
TextureCache::ClearRenderTargets();
UpdateActiveConfig();
TextureCache::OnConfigChanged(g_ActiveConfig);
// For testing zbuffer targets.
// Renderer::SetZBufferRender();