From 36e485b2a3c070df99936af1783b9c72d99cdca5 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 26 Jun 2025 15:13:54 +0200 Subject: [PATCH] move gl portalcullsector check back to the right place lel oopsie --- src/hardware/hw_main.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 906ac9161..c3cd01ad7 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -3199,17 +3199,6 @@ static void HWR_RenderBSPNode(INT32 bspnum) bspnum = bsp->children[side^1]; } - // PORTAL CULLING - if (portalcullsector) - { - // skip all subsectors encountered before the portal - // destination's front sector - if (portalcullsector != subsectors[bspnum & ~NF_SUBSECTOR].sector) - return; - else - portalcullsector = NULL; - } - // e6y: support for extended nodes HWR_Subsector(bspnum == -1 ? 0 : bspnum & ~NF_SUBSECTOR); } @@ -3241,6 +3230,17 @@ static void HWR_RenderPortalBSPNode(INT32 bspnum) bspnum = bsp->children[side^1]; } + // PORTAL CULLING + if (portalcullsector) + { + // skip all subsectors encountered before the portal + // destination's front sector + if (portalcullsector != subsectors[bspnum & ~NF_SUBSECTOR].sector) + return; + else + portalcullsector = NULL; + } + // e6y: support for extended nodes HWR_Subsector(bspnum == -1 ? 0 : bspnum & ~NF_SUBSECTOR); }