summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/RenderBase.cpp
diff options
context:
space:
mode:
authorbaby.lueshi <baby.lueshi@gmail.com>2011-02-08 03:47:59 +0000
committerbaby.lueshi <baby.lueshi@gmail.com>2011-02-08 03:47:59 +0000
commit1f0663c1a870ccf3928bd24f27613a1e0f154abb (patch)
tree21c0a065cbcc982d13a003e87646e903fa624a05 /Source/Core/VideoCommon/Src/RenderBase.cpp
parentf0adc3adb46cb74b71bc2c95d82a4c0662f65d9a (diff)
Defer texture invalidation to the video thread from the video configuration dialog. Should fix issue 4069
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7108 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/RenderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/RenderBase.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/RenderBase.cpp b/Source/Core/VideoCommon/Src/RenderBase.cpp
index 459edee708..d822d8f02d 100644
--- a/Source/Core/VideoCommon/Src/RenderBase.cpp
+++ b/Source/Core/VideoCommon/Src/RenderBase.cpp
@@ -31,6 +31,7 @@
#include "MainBase.h"
#include "VideoConfig.h"
#include "FramebufferManagerBase.h"
+#include "TextureCacheBase.h"
#include "Fifo.h"
#include "Timer.h"
#include "StringUtil.h"
@@ -109,6 +110,11 @@ void Renderer::RenderToXFB(u32 xfbAddr, u32 fbWidth, u32 fbHeight, const EFBRect
g_renderer->Swap(xfbAddr, FIELD_PROGRESSIVE, fbWidth, fbHeight,sourceRc,Gamma);
Common::AtomicStoreRelease(s_swapRequested, false);
}
+
+ if (TextureCache::DeferredInvalidate)
+ {
+ TextureCache::Invalidate(false);
+ }
}
void Renderer::CalculateTargetScale(int x, int y, int &scaledX, int &scaledY)