- on older ATI drivers where the clip planes are broken, only disable the clip planes themselves, but not OpenGL 3.x so that dynamic lights still work as intended.
- only disable clip planes on Windows, but not on Linux or macOS. - If a driver reports full OpenGL 4.5 support, assume that all features are working properly.
This commit is contained in:
parent
2ac91f0c5a
commit
9c9edbffdb
7 changed files with 27 additions and 11 deletions
|
|
@ -344,12 +344,12 @@ void FRenderState::SetClipHeight(float height, float direction)
|
|||
mClipHeightDirection = direction;
|
||||
#if 1
|
||||
// This still doesn't work... :(
|
||||
if (gl.glslversion < 1.3f) return;
|
||||
if (gl.flags & RFL_NO_CLIP_PLANES) return;
|
||||
#endif
|
||||
if (direction != 0.f)
|
||||
{
|
||||
/*
|
||||
if (gl.glslversion < 1.3f)
|
||||
if (gl.flags & RFL_NO_CLIP_PLANES)
|
||||
{
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
glPushMatrix();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue