diff --git a/src/hardware/hw_portal.c b/src/hardware/hw_portal.c index b02e42563..a015d7c76 100644 --- a/src/hardware/hw_portal.c +++ b/src/hardware/hw_portal.c @@ -55,9 +55,6 @@ static gl_portal_t* HWR_Portal_Add (seg_t *seg) } portal->next = NULL; - // Increase recursion level. - portal->pass = portalrender+1; - portal->seg = seg; return portal; @@ -112,7 +109,6 @@ void HWR_Portal_Add2Lines(const INT32 line1, const INT32 line2, seg_t *seg) portal->angle1 = R_PointToAngle64(seg->v1->x, seg->v1->y) + dangle; portal->angle2 = R_PointToAngle64(seg->v2->x, seg->v2->y) + dangle; - portal->startline = line1; portal->clipline = line2; } diff --git a/src/hardware/hw_portal.h b/src/hardware/hw_portal.h index b1276e15d..f42d2f61c 100644 --- a/src/hardware/hw_portal.h +++ b/src/hardware/hw_portal.h @@ -41,12 +41,8 @@ typedef struct gl_portal_s fixed_t viewz; angle_t viewangle; - UINT8 pass; /**< Keeps track of the portal's recursion depth. */ - INT32 startline; - INT32 clipline; /**< Optional clipline for line-based portals. */ - INT32 drawcount; /**< For OpenGL. */ - - seg_t *seg; + seg_t *seg; // seg that is used for drawing to the stencil buffer + INT32 clipline; // Optional clipline for line-based portals // angles for the left and right edges of the portal // relative to the viewpoint