Skip to content

Commit

Permalink
- use proper map section for wall mirror portal
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed May 29, 2018
1 parent a0695cb commit f06ee10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gl/scene/gl_portal.cpp
Expand Up @@ -874,6 +874,8 @@ void GLMirrorPortal::DrawContents(FDrawInfo *di)
return;
}

di->UpdateCurrentMapSection();

di->mClipPortal = this;
DAngle StartAngle = r_viewpoint.Angles.Yaw;
DVector3 StartPos = r_viewpoint.Pos;
Expand Down Expand Up @@ -943,8 +945,6 @@ void GLMirrorPortal::DrawContents(FDrawInfo *di)
angle_t a1 = linedef->v2->GetClipAngle();
di->mClipper->SafeAddClipRange(a1,a2);

di->UpdateCurrentMapSection();

gl_RenderState.SetClipLine(linedef);
gl_RenderState.EnableClipLine(true);
drawer->DrawScene(di, DM_PORTAL);
Expand Down

0 comments on commit f06ee10

Please sign in to comment.