Skip to content

Commit

Permalink
- more handling of some very broken old ATI drivers.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 19, 2017
1 parent e1cd0dc commit a4231ff
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/gl/system/gl_interface.cpp
Expand Up @@ -213,6 +213,16 @@ void gl_LoadExtensions()
gl.glslversion = 0;
gl.flags |= RFL_NO_CLIP_PLANES;
}
else if (gl.glslversion < 1.4f && !CheckExtension("GL_ARB_uniform_buffer_object"))
{
// Some old ATI drivers report OpenGL 3.1 with GLSL version 1.3 and no support for uniform buffers.
// We have no choice but to force them down to OpenGL 2.x.
gl.legacyMode = true;
gl.lightmethod = LM_LEGACY;
gl.buffermethod = BM_LEGACY;
gl.glslversion = 0;
gl.flags |= RFL_NO_CLIP_PLANES;
}
else
{
gl.legacyMode = false;
Expand Down

0 comments on commit a4231ff

Please sign in to comment.