[GLExtensions] Future proof ourself by putting the default: instance on the top, so we'll grab extensions if they support something newer. Handle older GLVersions in the case they get that far.
This commit is contained in:
parent
2a11fead5c
commit
a5ffe9932a
|
@ -835,6 +835,7 @@ namespace GLExtensions
|
|||
// This has intentional fall through
|
||||
switch (_GLVersion)
|
||||
{
|
||||
default:
|
||||
case 330:
|
||||
{
|
||||
std::string gl330exts[] = {
|
||||
|
@ -911,7 +912,15 @@ namespace GLExtensions
|
|||
for (auto it : gl300exts)
|
||||
_extensionlist[it] = true;
|
||||
}
|
||||
default:
|
||||
case 210:
|
||||
case 200:
|
||||
case 150:
|
||||
case 140:
|
||||
case 130:
|
||||
case 121:
|
||||
case 120:
|
||||
case 110:
|
||||
case 100:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue