Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information
icculus committed May 22, 2013
1 parent db2550b commit f46c4b11002f1acaa2c4a6315b0c17357ffbca43
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/video/SDL_video.c
@@ -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);

0 comments on commit f46c4b1

Please sign in to comment.