mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 15:22:20 +00:00
OpenGL: check for 1.3+ or 2.0+, not just 1.3/2.X to 4.X
This commit is contained in:
parent
6be7693ecb
commit
6847a89bc2
1 changed files with 4 additions and 12 deletions
|
@ -528,18 +528,10 @@ boolean SetupGLFunc13(void)
|
||||||
if (sscanf((const char*)version, "%d.%d", &glmajor, &glminor) == 2)
|
if (sscanf((const char*)version, "%d.%d", &glmajor, &glminor) == 2)
|
||||||
{
|
{
|
||||||
// Look, we gotta prepare for the inevitable arrival of GL 2.0 code...
|
// Look, we gotta prepare for the inevitable arrival of GL 2.0 code...
|
||||||
switch (glmajor)
|
if (glmajor == 1 && glminor >= 3)
|
||||||
{
|
gl13 = true;
|
||||||
case 1:
|
else if (glmajor > 1)
|
||||||
if (glminor == 3) gl13 = true;
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
case 3:
|
|
||||||
case 4:
|
|
||||||
gl13 = true;
|
gl13 = true;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue