From 7f0e29db48f2433b0f608a51c4ba5d127705f3b0 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 22 Jun 2018 22:50:33 +0200 Subject: [PATCH] - fixed clip plane setup. This had to be reordered so that the clip plane gets set before applying the uniforms. --- src/gl/scene/gl_portal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/scene/gl_portal.cpp b/src/gl/scene/gl_portal.cpp index 192f179454..c337d113c5 100644 --- a/src/gl/scene/gl_portal.cpp +++ b/src/gl/scene/gl_portal.cpp @@ -740,12 +740,12 @@ void GLPlaneMirrorPortal::DrawContents(FDrawInfo *di) PlaneMirrorMode = origin->fC() < 0 ? -1 : 1; PlaneMirrorFlag++; + di->SetClipHeight(planez, PlaneMirrorMode < 0 ? -1.f : 1.f); di->SetupView(vp.Pos.X, vp.Pos.Y, vp.Pos.Z, !!(MirrorFlag & 1), !!(PlaneMirrorFlag & 1)); ClearClipper(di); di->UpdateCurrentMapSection(); - di->SetClipHeight(planez, PlaneMirrorMode < 0 ? -1.f : 1.f); di->DrawScene(DM_PORTAL); PlaneMirrorFlag--; PlaneMirrorMode = old_pm;