From 8b676b9b284367b4b90261b6c5a3e94e190ebfd9 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 28 Jul 2006 08:46:24 +0000 Subject: [PATCH] We're not querying the glX attributes anymore... --- src/video/x11/SDL_x11opengl.c | 5 +---- src/video/x11/SDL_x11opengl.h | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/video/x11/SDL_x11opengl.c b/src/video/x11/SDL_x11opengl.c index ab7687e51..787c9043c 100644 --- a/src/video/x11/SDL_x11opengl.c +++ b/src/video/x11/SDL_x11opengl.c @@ -109,15 +109,12 @@ X11_GL_LoadLibrary(_THIS, const char *path) _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; } diff --git a/src/video/x11/SDL_x11opengl.h b/src/video/x11/SDL_x11opengl.h index 41dc7b936..d8bfe6a0b 100644 --- a/src/video/x11/SDL_x11opengl.h +++ b/src/video/x11/SDL_x11opengl.h @@ -50,9 +50,6 @@ struct SDL_GLDriverData 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);