Fixed build against 10.4 SDK
authorSam Lantinga <slouken@libsdl.org>
Tue, 18 Jan 2011 14:57:39 -0800
changeset 5021 cd3a1d87cab7
parent 5020 6dfc9c4a9ae5
child 5022 02e2c3d18bb8
Fixed build against 10.4 SDK
src/video/x11/SDL_x11opengl.c
--- a/src/video/x11/SDL_x11opengl.c	Tue Jan 18 14:26:30 2011 -0800
+++ b/src/video/x11/SDL_x11opengl.c	Tue Jan 18 14:57:39 2011 -0800
@@ -64,6 +64,15 @@
 #define GLX_CONTEXT_FLAGS_ARB              0x2094
 #define GLX_CONTEXT_DEBUG_BIT_ARB          0x0001
 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
+
+/* Typedef for the GL 3.0 context creation function */
+typedef GLXContext(*PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display * dpy,
+                                                        GLXFBConfig config,
+                                                        GLXContext
+                                                        share_context,
+                                                        Bool direct,
+                                                        const int
+                                                        *attrib_list);
 #endif
 
 #define OPENGL_REQUIRS_DLOPEN
@@ -80,16 +89,6 @@
 
 static void X11_GL_InitExtensions(_THIS);
 
-/* Typedef for the GL 3.0 context creation function */
-#ifndef GLX_ARB_create_context
-typedef GLXContext(*PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display * dpy,
-                                                        GLXFBConfig config,
-                                                        GLXContext
-                                                        share_context,
-                                                        Bool direct,
-                                                        const int
-                                                        *attrib_list);
-#endif /* GLX_ARB_create_context */
 
 int
 X11_GL_LoadLibrary(_THIS, const char *path)