summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2015-02-19 10:57:54 +0100
committerTony Wasserka <neobrainx@gmail.com>2015-02-19 10:57:54 +0100
commit4cc1a71441a7a6c339f8680772caf7c8c45ca32d (patch)
treeb6700575b6dcc5069be7995ec927e10ab044fdc2 /src
parentMerge pull request #580 from lioncash/emplace (diff)
parentRasterizer: Fixed a warning in GetWrappedTexCoord. (diff)
downloadyuzu-4cc1a71441a7a6c339f8680772caf7c8c45ca32d.tar
yuzu-4cc1a71441a7a6c339f8680772caf7c8c45ca32d.tar.gz
yuzu-4cc1a71441a7a6c339f8680772caf7c8c45ca32d.tar.bz2
yuzu-4cc1a71441a7a6c339f8680772caf7c8c45ca32d.tar.lz
yuzu-4cc1a71441a7a6c339f8680772caf7c8c45ca32d.tar.xz
yuzu-4cc1a71441a7a6c339f8680772caf7c8c45ca32d.tar.zst
yuzu-4cc1a71441a7a6c339f8680772caf7c8c45ca32d.zip
Diffstat (limited to '')
-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: