mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-29 23:23:07 +00:00
- fixed check for Mesa driver.
This commit is contained in:
parent
aa356fcd00
commit
50af195e45
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