From 5410367ebfc01317b4f61124818330b43a765436 Mon Sep 17 00:00:00 2001 From: Subv Date: Wed, 18 Feb 2015 17:59:30 -0500 Subject: Rasterizer: Fixed a warning in GetWrappedTexCoord. Redeclaring the variable inside the switch was causing weird behavior. --- src/video_core/rasterizer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/video_core/rasterizer.cpp') diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp index 94873f40..81df09ba 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: -- cgit v1.2.3