mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- 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:
parent
80a9028938
commit
7f0e29db48
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue