Fix infinitely long splat spans
This commit is contained in:
parent
4273896311
commit
0e62cb2ada
|
@ -268,6 +268,9 @@ void R_RenderFloorSplat(floorsplat_t *pSplat, vertex_t *verts, vissprite_t *vis)
|
||||||
x2 = swap;
|
x2 = swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (x1 == INT16_MIN || x2 == INT16_MAX)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (x1 < 0)
|
if (x1 < 0)
|
||||||
x1 = 0;
|
x1 = 0;
|
||||||
if (x2 >= vid.width)
|
if (x2 >= vid.width)
|
||||||
|
|
Loading…
Reference in New Issue