cache this
somehow this was unusually expensive lol
This commit is contained in:
1 parent
7b813e142b
commit
6ebf6a2797
1 file changed
+5
-3
@@ -549,11 +549,13 @@ static void HWR_RenderPlane(subsector_t *subsector, extrasubsector_t *xsub, bool
|
||||
static FOutVector *planeVerts = NULL;
|
||||
static UINT16 numAllocedPlaneVerts = 0;
|
||||
|
||||
poly_t *planepoly = xsub->planepoly;
|
||||
|
||||
// no convex poly were generated for this subsector
|
||||
if (!xsub->planepoly)
|
||||
if (!planepoly)
|
||||
return;
|
||||
|
||||
nrPlaneVerts = xsub->planepoly->numpts;
|
||||
nrPlaneVerts = planepoly->numpts;
|
||||
|
||||
if (nrPlaneVerts < 3) //not even a triangle ?
|
||||
return;
|
||||
@@ -622,7 +624,7 @@ static void HWR_RenderPlane(subsector_t *subsector, extrasubsector_t *xsub, bool
|
||||
break;
|
||||
}
|
||||
|
||||
pv = xsub->planepoly->pts;
|
||||
pv = planepoly->pts;
|
||||
|
||||
// reference point for flat texture coord for each vertex around the polygon
|
||||
flatxref = (float)(((fixed_t)pv->x & (~flatflag)) / fflatsize);
|
||||
|
||||
Reference in new issue
Block a user