src/video/x11/SDL_x11opengl.c
changeset 5020 6dfc9c4a9ae5
parent 4550 e4e462f591d7
child 5021 cd3a1d87cab7
--- a/src/video/x11/SDL_x11opengl.c	Tue Jan 18 14:21:10 2011 -0800
+++ b/src/video/x11/SDL_x11opengl.c	Tue Jan 18 14:26:30 2011 -0800
@@ -81,6 +81,7 @@
 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
@@ -88,6 +89,7 @@
                                                         Bool direct,
                                                         const int
                                                         *attrib_list);
+#endif /* GLX_ARB_create_context */
 
 int
 X11_GL_LoadLibrary(_THIS, const char *path)