mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-01 07:06:45 +00:00
Invalidate texture cache when the STC or native mipmaps options are changed.
Fixes minor graphical glitches in these cases. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6677 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
9bf2705c2d
commit
7de6773483
3 changed files with 19 additions and 4 deletions
|
@ -950,6 +950,11 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
|
|||
DLCache::ProgressiveCleanup();
|
||||
TextureCache::Cleanup();
|
||||
|
||||
// reload textures if these settings changed
|
||||
if (g_Config.bSafeTextureCache != g_ActiveConfig.bSafeTextureCache ||
|
||||
g_Config.bUseNativeMips != g_ActiveConfig.bUseNativeMips)
|
||||
TextureCache::Invalidate(false);
|
||||
|
||||
// Enable any configuration changes
|
||||
UpdateActiveConfig();
|
||||
const bool WindowResized = CheckForResize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue