Merge remote-tracking branch 'public-gitlab/opengl-bsp-cleanup' into opengl-bsp-cleanup

This commit is contained in:
mazmazz 2018-12-14 16:23:42 -05:00
commit 66efc7ea7f
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ static polyvertex_t *fracdivline(fdivline_t *bsp, polyvertex_t *v1,
v2dy = bsp->dy;
den = v2dy*v1dx - v2dx*v1dy;
if (den == 0.0)
if (fabs(den) < 1.0E-36f) // avoid checking exactly for 0.0
return NULL; // parallel
// first check the frac along the polygon segment,