mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- fixed check for Mesa driver.
This commit is contained in:
parent
b74c374a66
commit
c87836c3f3
1 changed files with 2 additions and 2 deletions
|
@ -167,8 +167,8 @@ void gl_LoadExtensions()
|
||||||
gl.flags |= RFL_SAMPLER_OBJECTS;
|
gl.flags |= RFL_SAMPLER_OBJECTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The minimum requirement for the modern render path are GL 3.0 + uniform buffers
|
// The minimum requirement for the modern render path are GL 3.0 + uniform buffers. Also exclude the Linux Mesa driver at GL 3.0 because it errors out on shader compilation.
|
||||||
if (gl_version < 3.0f || (gl_version < 3.1f && !CheckExtension("GL_ARB_uniform_buffer_object") && strstr(gl.vendorstring, "X.Org") == nullptr))
|
if (gl_version < 3.0f || (gl_version < 3.1f && (!CheckExtension("GL_ARB_uniform_buffer_object") || strstr(gl.vendorstring, "X.Org") != nullptr)))
|
||||||
{
|
{
|
||||||
gl.legacyMode = true;
|
gl.legacyMode = true;
|
||||||
gl.lightmethod = LM_LEGACY;
|
gl.lightmethod = LM_LEGACY;
|
||||||
|
|
Loading…
Reference in a new issue