2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #585 from Subv/local_var

Rasterizer: Fixed a warning in GetWrappedTexCoord.
This commit is contained in:
Tony Wasserka 2015-02-19 10:57:54 +01:00
commit 4cc1a71441

View file

@ -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: