mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
don't leave any gaps in the used clip planes.
This commit is contained in:
parent
47db3252f4
commit
238990c871
2 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue