Commit Graph

2 Commits

Author SHA1 Message Date
Matthias Bentrup
bac20de049 Get GL extension strings via glGetStringi() if GL version is >= 3.0. 2015-12-16 21:11:58 +10:00
Matthias Bentrup
e935fcad83 Load core function pointers before checking the extension string.
For GL versions since 3.0 the glGetString() function is deprecated or removed,
and the right way to query extensions is glGetStringi(), but that has to be
loaded first.

Also instead of searching the whole extension string n times lookup the
known extensions in a static hash table. The hash table is built with
the gperf utility.
2015-12-16 21:10:52 +10:00