Patched to compile with older glext.h that don't have GL_NUM_EXTENSIONS.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 22 May 2013 01:36:37 -0400
changeset 7212 81b0d4773d47
parent 7211 0567f0518775
child 7213 53df899db00b
Patched to compile with older glext.h that don't have GL_NUM_EXTENSIONS.
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Tue May 21 22:35:13 2013 -0700
+++ b/src/video/SDL_video.c	Wed May 22 01:36:37 2013 -0400
@@ -2392,6 +2392,9 @@
             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);