don't leave any gaps in the used clip planes.

This commit is contained in:
Christoph Oelckers 2016-01-27 12:32:39 +01:00
parent 47db3252f4
commit 238990c871
2 changed files with 4 additions and 4 deletions

View file

@ -767,11 +767,11 @@ void GLDrawList::DrawSorted()
sorted=DoSort(SortNodes[SortNodeStart]);
}
gl_RenderState.ClearClipSplit();
glEnable(GL_CLIP_DISTANCE1);
glEnable(GL_CLIP_DISTANCE2);
glEnable(GL_CLIP_DISTANCE3);
DoDrawSorted(sorted);
glDisable(GL_CLIP_DISTANCE1);
glDisable(GL_CLIP_DISTANCE2);
glDisable(GL_CLIP_DISTANCE3);
gl_RenderState.ClearClipSplit();
}

View file

@ -54,6 +54,6 @@ void main()
gl_ClipDistance[0] = uClipHeightTop - worldcoord.y;
}
gl_ClipDistance[2] = worldcoord.y - uClipSplit.x;
gl_ClipDistance[3] = uClipSplit.y - worldcoord.y;
gl_ClipDistance[1] = worldcoord.y - uClipSplit.x;
gl_ClipDistance[2] = uClipSplit.y - worldcoord.y;
}