[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:
Ryan Houdek 2014-01-08 10:16:39 -06:00 committed by degasus
parent 2a11fead5c
commit a5ffe9932a
1 changed files with 10 additions and 1 deletions

View File

@ -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;
}
}