- moved the clipline uniform to the viewpoint buffer.
This was the final one of the per-scene values that could be taken out of the render state.
This commit is contained in:
parent
7f0e29db48
commit
82d7e5970f
12 changed files with 35 additions and 107 deletions
|
|
@ -79,7 +79,7 @@ void FDrawInfo::ApplyVPUniforms()
|
|||
|
||||
if (!(gl.flags & RFL_NO_CLIP_PLANES))
|
||||
{
|
||||
if (VPUniforms.mClipHeightDirection != 0.f)
|
||||
if (VPUniforms.mClipHeightDirection != 0.f || VPUniforms.mClipLine.X > -10000000.0f)
|
||||
{
|
||||
glEnable(GL_CLIP_DISTANCE0);
|
||||
}
|
||||
|
|
@ -90,6 +90,7 @@ void FDrawInfo::ApplyVPUniforms()
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// Setup the modelview matrix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue