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 721281b0d4773d47
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
     1.1 --- a/src/video/SDL_video.c	Tue May 21 22:35:13 2013 -0700
     1.2 +++ b/src/video/SDL_video.c	Wed May 22 01:36:37 2013 -0400
     1.3 @@ -2392,6 +2392,9 @@
     1.4              return SDL_FALSE;
     1.5          }
     1.6  
     1.7 +        #ifndef GL_NUM_EXTENSIONS
     1.8 +        #define GL_NUM_EXTENSIONS 0x821D
     1.9 +        #endif
    1.10          glGetIntegervFunc(GL_NUM_EXTENSIONS, &num_exts);
    1.11          for (i = 0; i < num_exts; i++) {
    1.12              const char *thisext = (const char *) glGetStringiFunc(GL_EXTENSIONS, i);