Fixed build against 10.4 SDK
authorSam Lantinga
Tue, 18 Jan 2011 14:57:39 -0800
changeset 5021cd3a1d87cab7
parent 5020 6dfc9c4a9ae5
child 5022 02e2c3d18bb8
Fixed build against 10.4 SDK
src/video/x11/SDL_x11opengl.c
     1.1 --- a/src/video/x11/SDL_x11opengl.c	Tue Jan 18 14:26:30 2011 -0800
     1.2 +++ b/src/video/x11/SDL_x11opengl.c	Tue Jan 18 14:57:39 2011 -0800
     1.3 @@ -64,6 +64,15 @@
     1.4  #define GLX_CONTEXT_FLAGS_ARB              0x2094
     1.5  #define GLX_CONTEXT_DEBUG_BIT_ARB          0x0001
     1.6  #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
     1.7 +
     1.8 +/* Typedef for the GL 3.0 context creation function */
     1.9 +typedef GLXContext(*PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display * dpy,
    1.10 +                                                        GLXFBConfig config,
    1.11 +                                                        GLXContext
    1.12 +                                                        share_context,
    1.13 +                                                        Bool direct,
    1.14 +                                                        const int
    1.15 +                                                        *attrib_list);
    1.16  #endif
    1.17  
    1.18  #define OPENGL_REQUIRS_DLOPEN
    1.19 @@ -80,16 +89,6 @@
    1.20  
    1.21  static void X11_GL_InitExtensions(_THIS);
    1.22  
    1.23 -/* Typedef for the GL 3.0 context creation function */
    1.24 -#ifndef GLX_ARB_create_context
    1.25 -typedef GLXContext(*PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display * dpy,
    1.26 -                                                        GLXFBConfig config,
    1.27 -                                                        GLXContext
    1.28 -                                                        share_context,
    1.29 -                                                        Bool direct,
    1.30 -                                                        const int
    1.31 -                                                        *attrib_list);
    1.32 -#endif /* GLX_ARB_create_context */
    1.33  
    1.34  int
    1.35  X11_GL_LoadLibrary(_THIS, const char *path)