- fixed inverted checks for texture clamping.

This commit is contained in:
Christoph Oelckers 2020-09-25 23:42:53 +02:00
parent 8b9853ad28
commit 1e63341c4d

View file

@ -371,8 +371,8 @@ static void polymost_drawpoly(vec2f_t const * const dpxy, int32_t const n, int32
int sampleroverride = CLAMP_NONE;
if (method & DAMETH_CLAMPED)
{
if (drawpoly_srepeat) sampleroverride |= CLAMP_Y;
if (drawpoly_trepeat) sampleroverride |= CLAMP_X;
if (!drawpoly_srepeat) sampleroverride |= CLAMP_Y;
if (!drawpoly_trepeat) sampleroverride |= CLAMP_X;
}