Patched to compile with older glext.h that don't have GL_NUM_EXTENSIONS.
--HG-- extra : rebase_source : e2ece9401f8f324875930d35c61514920732087b
This commit is contained in:
parent
e2039118c2
commit
a106589b14
1 changed files with 3 additions and 0 deletions
|
@ -2392,6 +2392,9 @@ SDL_GL_ExtensionSupported(const char *extension)
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef GL_NUM_EXTENSIONS
|
||||||
|
#define GL_NUM_EXTENSIONS 0x821D
|
||||||
|
#endif
|
||||||
glGetIntegervFunc(GL_NUM_EXTENSIONS, &num_exts);
|
glGetIntegervFunc(GL_NUM_EXTENSIONS, &num_exts);
|
||||||
for (i = 0; i < num_exts; i++) {
|
for (i = 0; i < num_exts; i++) {
|
||||||
const char *thisext = (const char *) glGetStringiFunc(GL_EXTENSIONS, i);
|
const char *thisext = (const char *) glGetStringiFunc(GL_EXTENSIONS, i);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue