diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 87e18d815..49239ce51 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -5470,8 +5470,6 @@ static void HWR_RenderViewpoint(gl_portal_t *rootportal, const float fpov, playe portallist.base = portallist.cap = NULL; const boolean skybox = (skyboxmo[0] && cv_skybox.value); - validcount++; - if (cv_grportals.value && gr_maphasportals && allow_portals && stencil_level < cv_maxportals.value) // if recursion limit is not reached { // search for portals in current frame @@ -5484,6 +5482,8 @@ static void HWR_RenderViewpoint(gl_portal_t *rootportal, const float fpov, playe else HWR_PortalClipping(rootportal); + validcount++; + HWR_RenderBSPNode((INT32)numnodes-1);// no actual rendering happens // for each found portal: @@ -5519,6 +5519,8 @@ static void HWR_RenderViewpoint(gl_portal_t *rootportal, const float fpov, playe // Set transform. HWD.pfnSetTransform(&atransform); + validcount++; + ps_numbspcalls.value.i = 0; ps_numpolyobjects.value.i = 0; PS_START_TIMING(ps_bsptime);