Skip to content
Snippets Groups Projects
Commit 5410367e authored by Subv's avatar Subv
Browse files

Rasterizer: Fixed a warning in GetWrappedTexCoord.

Redeclaring the variable inside the switch was causing weird behavior.
parent ec8f2210
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment