mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
Merge pull request #585 from Subv/local_var
Rasterizer: Fixed a warning in GetWrappedTexCoord.
This commit is contained in:
commit
4cc1a71441
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue