summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/RenderBase.cpp
diff options
context:
space:
mode:
authorNeoBrainX <NeoBrainX@googlemail.com>2010-12-27 21:56:20 +0000
committerNeoBrainX <NeoBrainX@googlemail.com>2010-12-27 21:56:20 +0000
commita271bb81820b9e37942aa3d17dcfc10e467e008e (patch)
tree9c3c76af515fa932b284a1f60eba6011090050e2 /Source/Core/VideoCommon/Src/RenderBase.cpp
parent6e8df50fffeb381523d40aeae31afa4f60df46a3 (diff)
Implement pixel data reinterpretation on EFB format change.
Whatever that means, it fixes that stupid Super Mario Sunshine glitch and possibly lots of other stuff, so test as many glitchy games as possible with this ;) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6669 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/RenderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/RenderBase.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/RenderBase.cpp b/Source/Core/VideoCommon/Src/RenderBase.cpp
index dd6cf99011..a4224c223b 100644
--- a/Source/Core/VideoCommon/Src/RenderBase.cpp
+++ b/Source/Core/VideoCommon/Src/RenderBase.cpp
@@ -77,6 +77,8 @@ int Renderer::s_LastEFBScale;
bool Renderer::s_skipSwap;
bool Renderer::XFBWrited;
+unsigned int Renderer::prev_efb_format = (unsigned int)-1;
+
Renderer::Renderer()
{
UpdateActiveConfig();
@@ -84,7 +86,8 @@ Renderer::Renderer()
Renderer::~Renderer()
{
-
+ // invalidate previous efb format
+ prev_efb_format = (unsigned int)-1;
}
void Renderer::RenderToXFB(u32 xfbAddr, u32 fbWidth, u32 fbHeight, const EFBRectangle& sourceRc,float Gamma)