From 364d2a042b2c89234afbe726f9ebed02c88dcfe8 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 7 Sep 2024 20:09:36 +0200 Subject: [PATCH] oops --- src/hardware/hw_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index a42dd9193..3267cbffe 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -5459,8 +5459,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 @@ -5473,6 +5471,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: @@ -5508,6 +5508,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);