Skip to content
Snippets Groups Projects
Commit 02fc845a authored by Monster Iestyn's avatar Monster Iestyn
Browse files

Make sure nptfront is explicitly > 0, so we don't alloc a poly for negative number points at all

parent 4089b6b8
No related branches found
No related tags found
2 merge requests!488Merge in next and don't billboard papersprites in GL,!382Opengl BSP cleanup and fixes
......@@ -387,7 +387,7 @@ static void SplitPoly (fdivline_t *bsp, //splitting parametric line
*backpoly = HWR_AllocPoly(2 + nptback);
else
*backpoly = NULL;
if (nptfront)
if (nptfront > 0)
*frontpoly = HWR_AllocPoly(2 + nptfront);
else
*frontpoly = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment