We're not querying the glX attributes anymore...
authorSam Lantinga <slouken@libsdl.org>
Fri, 28 Jul 2006 08:46:24 +0000
changeset 1953214880ed48c3
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
     1.1 --- a/src/video/x11/SDL_x11opengl.c	Fri Jul 28 08:43:17 2006 +0000
     1.2 +++ b/src/video/x11/SDL_x11opengl.c	Fri Jul 28 08:46:24 2006 +0000
     1.3 @@ -109,15 +109,12 @@
     1.4      _this->gl_data->glXSwapBuffers =
     1.5          (void (*)(Display *, GLXDrawable)) GL_LoadFunction(handle,
     1.6                                                             "glXSwapBuffers");
     1.7 -    _this->gl_data->glXGetConfig =
     1.8 -        (int (*)(Display *, XVisualInfo *, int, int *))
     1.9 -        GL_LoadFunction(handle, "glXGetConfig");
    1.10  
    1.11      if (!_this->gl_data->glXChooseVisual ||
    1.12          !_this->gl_data->glXCreateContext ||
    1.13          !_this->gl_data->glXDestroyContext ||
    1.14          !_this->gl_data->glXMakeCurrent ||
    1.15 -        !_this->gl_data->glXSwapBuffers || !_this->gl_data->glXGetConfig) {
    1.16 +        !_this->gl_data->glXSwapBuffers) {
    1.17          SDL_SetError("Could not retrieve OpenGL functions");
    1.18          return -1;
    1.19      }
     2.1 --- a/src/video/x11/SDL_x11opengl.h	Fri Jul 28 08:43:17 2006 +0000
     2.2 +++ b/src/video/x11/SDL_x11opengl.h	Fri Jul 28 08:46:24 2006 +0000
     2.3 @@ -50,9 +50,6 @@
     2.4      void (*glXSwapBuffers)
     2.5        (Display * dpy, GLXDrawable drawable);
     2.6  
     2.7 -    int (*glXGetConfig)
     2.8 -      (Display * dpy, XVisualInfo * visual_info, int attrib, int *value);
     2.9 -
    2.10      int (*glXSwapIntervalSGI) (int interval);
    2.11        GLint(*glXSwapIntervalMESA) (unsigned interval);
    2.12        GLint(*glXGetSwapIntervalMESA) (void);