More portal fixing in software renderer

This commit is contained in:
ZZYZX 2017-01-22 07:50:18 +02:00
commit a226337185
2 changed files with 6 additions and 3 deletions

View file

@ -618,9 +618,6 @@ void R_HighlightPortal (PortalDrawseg* pds)
void R_EnterPortal (PortalDrawseg* pds, int depth)
{
// [ZZ] portal hook
E_RenderCamera();
// [ZZ] check depth. fill portal with black if it's exceeding the visual recursion limit, and continue like nothing happened.
if (depth >= r_portal_recursions)
{
@ -723,6 +720,9 @@ void R_EnterPortal (PortalDrawseg* pds, int depth)
R_CopyStackedViewParameters();
// [ZZ] portal hook
E_RenderCamera();
validcount++;
PortalDrawseg* prevpds = CurrentPortal;
CurrentPortal = pds;