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.
This commit is contained in:
Nev3r 2019-06-03 13:04:04 +02:00
parent 264386f842
commit 942c34a6af
1 changed files with 2 additions and 2 deletions

View File

@ -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...