1
0
Fork 0
forked from fte/fteqw

Expand the mesa invariant check to every single gl version, apparently they still didn't apply the patch to mainstream mesa.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5426 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2019-03-04 00:48:36 +00:00
parent ba238e454b
commit bff1b66fac

View file

@ -1089,10 +1089,10 @@ void GL_CheckExtensions (void *(*getglfunction) (char *name))
if (Cvar_Get("gl_blacklist_invariant", "0", CVAR_VIDEOLATCH, "gl blacklists")->ival)
gl_config.blacklist_invariant = true;
else if (gl_config.arb_shader_objects && !gl_config_nofixedfunc &&
(strstr(gl_renderer, " Mesa ") || strstr(gl_version, " Mesa ")) && gl_config.glversion <= 3.1 && Cvar_Get("gl_blacklist_mesa_invariant", "1", CVAR_VIDEOLATCH, "gl blacklists")->ival)
(strstr(gl_renderer, " Mesa ") || strstr(gl_version, " Mesa ")) && Cvar_Get("gl_blacklist_mesa_invariant", "1", CVAR_VIDEOLATCH, "gl blacklists")->ival)
{
gl_config.blacklist_invariant = true;
Con_Printf(CON_NOTICE "Mesa detected, disabling the use of glsl's invariant keyword. This will result in z-fighting. Use '+set gl_blacklist_mesa_invariant 0' on the commandline to reenable it.\n");
Con_Printf(CON_NOTICE "Mesa detected, disabling the use of glsl's invariant keyword. This will result in z-fighting. Use '+set gl_blacklist_mesa_invariant 0' on the commandline to reenable it (but you will probably get glsl compilation errors from your driver).\n");
}
if (gl_config.arb_shader_objects)