summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/PixelShaderManager.cpp
diff options
context:
space:
mode:
authordeath2droid <death2droid@gmail.com>2009-05-09 07:55:30 +0000
committerdeath2droid <death2droid@gmail.com>2009-05-09 07:55:30 +0000
commitbe45b223bb9a43b4f249cf4dcedbc6af50e384b9 (patch)
tree38f6fef1aff31d99316d53a4d9f1588051eb901c /Source/Core/VideoCommon/Src/PixelShaderManager.cpp
parent8e535bf2c0085c02d59e5717ba0f6492bad77ab4 (diff)
A fix by baby.lueshi that fixes the problems with rev 3187
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3190 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/PixelShaderManager.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp
index 49200f401b..8abf2bd624 100644
--- a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp
+++ b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp
@@ -260,8 +260,11 @@ void PixelShaderManager::SetTexDims(int texmapid, u32 width, u32 height, u32 wra
void PixelShaderManager::SetCustomTexScale(int texmapid, float x, float y)
{
- lastCustomTexScale[texmapid][0] = x;
- lastCustomTexScale[texmapid][1] = y;
+ if (lastCustomTexScale[texmapid][0] != x || lastCustomTexScale[texmapid][1] != y) {
+ s_nTexDimsChanged |= 1 << texmapid;
+ lastCustomTexScale[texmapid][0] = x;
+ lastCustomTexScale[texmapid][1] = y;
+ }
}
void PixelShaderManager::SetZTextureBias(u32 bias)