summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2015-02-18 23:59:30 +0100
committerSubv <subv2112@gmail.com>2015-02-19 05:52:47 +0100
commit5410367ebfc01317b4f61124818330b43a765436 (patch)
treeb6700575b6dcc5069be7995ec927e10ab044fdc2
parentMerge pull request #580 from lioncash/emplace (diff)
downloadyuzu-5410367ebfc01317b4f61124818330b43a765436.tar
yuzu-5410367ebfc01317b4f61124818330b43a765436.tar.gz
yuzu-5410367ebfc01317b4f61124818330b43a765436.tar.bz2
yuzu-5410367ebfc01317b4f61124818330b43a765436.tar.lz
yuzu-5410367ebfc01317b4f61124818330b43a765436.tar.xz
yuzu-5410367ebfc01317b4f61124818330b43a765436.tar.zst
yuzu-5410367ebfc01317b4f61124818330b43a765436.zip
-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,
case Regs::TextureConfig::MirroredRepeat:
{
- int val = (int)((unsigned)val % (2 * size));
- if (val >= size)
- val = 2 * size - 1 - val;
- return val;
+ int coord = (int)((unsigned)val % (2 * size));
+ if (coord >= size)
+ coord = 2 * size - 1 - coord;
+ return coord;
}
default: