diff options
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/PixelShaderManager.cpp | 7 |
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) |
