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

Rasterizer: Fixed a warning in GetWrappedTexCoord.

Redeclaring the variable inside the switch was causing weird behavior.
This commit is contained in:
Subv 2015-02-18 17:59:30 -05:00
parent ec8f2210e3
commit 5410367ebf

View file

@ -266,10 +266,10 @@ static void ProcessTriangleInternal(const VertexShader::OutputVertex& v0,
case Regs::TextureConfig::MirroredRepeat: case Regs::TextureConfig::MirroredRepeat:
{ {
int val = (int)((unsigned)val % (2 * size)); int coord = (int)((unsigned)val % (2 * size));
if (val >= size) if (coord >= size)
val = 2 * size - 1 - val; coord = 2 * size - 1 - coord;
return val; return coord;
} }
default: default: