optimize ogl polyobjs slightly
This commit is contained in:
1 parent
c57154a8e5
commit
4e995436c5
1 file changed
+1
-16
+1
-16
@@ -2855,9 +2855,6 @@ static boolean HWR_CheckBBox(const fixed_t *bspcoord)
|
||||
static inline void HWR_AddPolyObjectSegs(void)
|
||||
{
|
||||
size_t i, j;
|
||||
seg_t gr_fakeline;
|
||||
polyvertex_t pv1;
|
||||
polyvertex_t pv2;
|
||||
|
||||
// Sort through all the polyobjects
|
||||
for (i = 0; i < numpolys; ++i)
|
||||
@@ -2865,19 +2862,7 @@ static inline void HWR_AddPolyObjectSegs(void)
|
||||
// Render the polyobject's lines
|
||||
for (j = 0; j < po_ptrs[i]->segCount; ++j)
|
||||
{
|
||||
// Copy the info of a polyobject's seg, then convert it to OpenGL floating point
|
||||
M_Memcpy(&gr_fakeline, po_ptrs[i]->segs[j], sizeof(seg_t));
|
||||
|
||||
// Now convert the line to float and add it to be rendered
|
||||
pv1.x = FIXED_TO_FLOAT(gr_fakeline.v1->x);
|
||||
pv1.y = FIXED_TO_FLOAT(gr_fakeline.v1->y);
|
||||
pv2.x = FIXED_TO_FLOAT(gr_fakeline.v2->x);
|
||||
pv2.y = FIXED_TO_FLOAT(gr_fakeline.v2->y);
|
||||
|
||||
gr_fakeline.pv1 = &pv1;
|
||||
gr_fakeline.pv2 = &pv2;
|
||||
|
||||
HWR_AddLine(&gr_fakeline);
|
||||
HWR_AddLine(po_ptrs[i]->segs[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user