- Fixed -glversion 3 was not being promoted to 3.3.

This commit is contained in:
drfrag 2020-09-14 02:06:14 +02:00
parent 4915758586
commit abd1d710cd

View file

@ -157,7 +157,11 @@ void gl_LoadExtensions()
else else
{ {
double v1 = strtod(version, NULL); double v1 = strtod(version, NULL);
if (v1 >= 3.0 && v1 < 3.3) v1 = 3.3; // promote '3' to 3.3 to avoid falling back to the legacy path. if (v1 >= 3.0 && v1 < 3.3) // promote '3' to 3.3 to avoid falling back to the legacy path.
{
v1 = 3.3;
version = "3.3";
}
if (realglversion < v1) version = glversion; if (realglversion < v1) version = glversion;
else Printf("Emulating OpenGL v %s\n", version); else Printf("Emulating OpenGL v %s\n", version);
} }