From f06ee1049555686f4b8fbe0dae11e2e6ca291b5b Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 29 May 2018 12:16:20 +0300 Subject: [PATCH] - use proper map section for wall mirror portal https://forum.zdoom.org/viewtopic.php?t=60671 --- src/gl/scene/gl_portal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl/scene/gl_portal.cpp b/src/gl/scene/gl_portal.cpp index 9b86cbbe8..3f8ede410 100644 --- a/src/gl/scene/gl_portal.cpp +++ b/src/gl/scene/gl_portal.cpp @@ -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; @@ -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);