reduce the scope of this since not needed

This commit is contained in:
Alug committed 2024-10-26 19:44:28 +02:00
1 parent dd516b573b
commit 2d918d32a1
1 file changed
+2 -2
+2 -2
View File
@@ -5029,8 +5029,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;
@@ -5038,6 +5036,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);