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

This commit is contained in:
Ryan C. Gordon
2013-05-22 01:36:37 -04:00
parent 971a985707
commit a346679caf

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);