Check for GL_ARB_texture_env_combine as well

FossilOrigin-Name: ca2bc91bc3c9539c632b293e103dc82bf42b25541ac8045f3665461d6afa1f24
This commit is contained in:
Jonathan Schleifer 2025-04-18 22:18:02 +00:00
parent cc73f6ed78
commit e11cbf6b41

View file

@ -54,7 +54,8 @@ gl_init(int w, int h)
char *exts = (char *)glGetString(GL_EXTENSIONS);
if (strstr(exts, "GL_EXT_texture_env_combine"))
if (strstr(exts, "GL_EXT_texture_env_combine") ||
strstr(exts, "GL_ARB_texture_env_combine"))
hasoverbright = true;
else
conoutf(@"WARNING: cannot use overbright lighting, using old "