- better be safe and not call GL_CLIP_DISTANCE functions on old hardware.
This commit is contained in:
parent
3faf5afa3a
commit
066d5c63e2
5 changed files with 24 additions and 17 deletions
|
|
@ -226,8 +226,6 @@ void GLSprite::Draw(int pass)
|
|||
{
|
||||
clipping = true;
|
||||
gl_RenderState.EnableSplit(true);
|
||||
glEnable(GL_CLIP_DISTANCE3);
|
||||
glEnable(GL_CLIP_DISTANCE4);
|
||||
}
|
||||
|
||||
secplane_t bottomp = { { 0, 0, -1. }, bottomclip };
|
||||
|
|
@ -333,8 +331,6 @@ void GLSprite::Draw(int pass)
|
|||
|
||||
if (clipping)
|
||||
{
|
||||
glDisable(GL_CLIP_DISTANCE3);
|
||||
glDisable(GL_CLIP_DISTANCE4);
|
||||
gl_RenderState.EnableSplit(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue