From b8a30cef57390dd02a45300de9408c74515e88d6 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 26 Oct 2024 19:43:57 +0200 Subject: [PATCH] reduce the scope of this since not needed --- src/hardware/hw_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index aa0199391..bbb7fbc8e 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -5081,8 +5081,6 @@ void HWR_SetStencilState(int state, int level) // Renders the current viewpoint, though takes portal arguments for recursive portals. void HWR_RenderViewpoint(gl_portal_t *rootportal, const float fpov, player_t *player, int stencil_level, boolean allow_portals) { - gl_portal_t *portal; - const boolean skybox = (skyboxmo[0] && cv_skybox.value); const boolean useportals = cv_grportals.value && gr_maphasportals && allow_portals; @@ -5090,6 +5088,8 @@ void HWR_RenderViewpoint(gl_portal_t *rootportal, const float fpov, player_t *pl if (useportals && stencil_level < cv_maxportals.value) // if recursion limit is not reached { + gl_portal_t *portal; + // search for portals in current frame currentportallist = &portallist; HWR_SetPortalState(GRPORTAL_SEARCH);