diff options
author | Subv <subv2112@gmail.com> | 2015-02-18 23:59:30 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-02-19 05:52:47 +0100 |
commit | 5410367ebfc01317b4f61124818330b43a765436 (patch) | |
tree | b6700575b6dcc5069be7995ec927e10ab044fdc2 | |
parent | Merge pull request #580 from lioncash/emplace (diff) | |
download | yuzu-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.cpp | 8 |
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: |