- fixed clip plane setup.

This had to be reordered so that the clip plane gets set before applying the uniforms.
This commit is contained in:
Christoph Oelckers 2018-06-22 22:50:33 +02:00
parent 80a9028938
commit 7f0e29db48
1 changed files with 1 additions and 1 deletions

View File

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