We're not querying the glX attributes anymore...
authorSam Lantinga <slouken@libsdl.org>
Fri, 28 Jul 2006 08:46:24 +0000
changeset 1953 214880ed48c3
parent 1952 420716272158
child 1954 c20e158a9299
We're not querying the glX attributes anymore...
src/video/x11/SDL_x11opengl.c
src/video/x11/SDL_x11opengl.h
--- a/src/video/x11/SDL_x11opengl.c	Fri Jul 28 08:43:17 2006 +0000
+++ b/src/video/x11/SDL_x11opengl.c	Fri Jul 28 08:46:24 2006 +0000
@@ -109,15 +109,12 @@
     _this->gl_data->glXSwapBuffers =
         (void (*)(Display *, GLXDrawable)) GL_LoadFunction(handle,
                                                            "glXSwapBuffers");
-    _this->gl_data->glXGetConfig =
-        (int (*)(Display *, XVisualInfo *, int, int *))
-        GL_LoadFunction(handle, "glXGetConfig");
 
     if (!_this->gl_data->glXChooseVisual ||
         !_this->gl_data->glXCreateContext ||
         !_this->gl_data->glXDestroyContext ||
         !_this->gl_data->glXMakeCurrent ||
-        !_this->gl_data->glXSwapBuffers || !_this->gl_data->glXGetConfig) {
+        !_this->gl_data->glXSwapBuffers) {
         SDL_SetError("Could not retrieve OpenGL functions");
         return -1;
     }
--- a/src/video/x11/SDL_x11opengl.h	Fri Jul 28 08:43:17 2006 +0000
+++ b/src/video/x11/SDL_x11opengl.h	Fri Jul 28 08:46:24 2006 +0000
@@ -50,9 +50,6 @@
     void (*glXSwapBuffers)
       (Display * dpy, GLXDrawable drawable);
 
-    int (*glXGetConfig)
-      (Display * dpy, XVisualInfo * visual_info, int attrib, int *value);
-
     int (*glXSwapIntervalSGI) (int interval);
       GLint(*glXSwapIntervalMESA) (unsigned interval);
       GLint(*glXGetSwapIntervalMESA) (void);