Patched to compile with older glext.h that don't have GL_NUM_EXTENSIONS.

--HG--
extra : rebase_source : e2ece9401f8f324875930d35c61514920732087b
This commit is contained in:
Ryan C. Gordon 2013-05-22 01:36:37 -04:00
parent e2039118c2
commit a106589b14

View file

@ -2392,6 +2392,9 @@ SDL_GL_ExtensionSupported(const char *extension)
return SDL_FALSE;
}
#ifndef GL_NUM_EXTENSIONS
#define GL_NUM_EXTENSIONS 0x821D
#endif
glGetIntegervFunc(GL_NUM_EXTENSIONS, &num_exts);
for (i = 0; i < num_exts; i++) {
const char *thisext = (const char *) glGetStringiFunc(GL_EXTENSIONS, i);