Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Patched to compile with older glext.h that don't have GL_NUM_EXTENSIONS.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 22, 2013
1 parent db2550b commit f46c4b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/SDL_video.c
Expand Up @@ -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);
Expand Down

0 comments on commit f46c4b1

Please sign in to comment.