summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_core/rasterizer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index 94873f406..81df09baf 100644
--- a/src/video_core/rasterizer.cpp
+++ b/src/video_core/rasterizer.cpp
@@ -266,10 +266,10 @@ static void ProcessTriangleInternal(const VertexShader::OutputVertex& v0,
266 266
267 case Regs::TextureConfig::MirroredRepeat: 267 case Regs::TextureConfig::MirroredRepeat:
268 { 268 {
269 int val = (int)((unsigned)val % (2 * size)); 269 int coord = (int)((unsigned)val % (2 * size));
270 if (val >= size) 270 if (coord >= size)
271 val = 2 * size - 1 - val; 271 coord = 2 * size - 1 - coord;
272 return val; 272 return coord;
273 } 273 }
274 274
275 default: 275 default: