From 942c34a6afd949410c00fd5cdcebfe1ee031024b Mon Sep 17 00:00:00 2001 From: Nev3r Date: Mon, 3 Jun 2019 13:04:04 +0200 Subject: [PATCH] Moved validcount++ to where it used to be. It seems to screw up the portal rendering in odd ways if it's in the wrong position. I apologize for not even knowing what it's meant to do nor how it works. --- src/r_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_main.c b/src/r_main.c index c9513e390..2e43d8838 100644 --- a/src/r_main.c +++ b/src/r_main.c @@ -1087,14 +1087,14 @@ void R_RenderPlayerView(player_t *player) // that were previously stored. Portal_ClipApply(portal); + validcount++; + // Render the BSP from the new viewpoint, and clip // any sprites with the new clipsegs and window. R_RenderBSPNode((INT32)numnodes - 1); R_ClipSprites(); Portal_Remove(portal); - - validcount++; } portalcullsector = NULL; // Just in case...