Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
We're not querying the glX attributes anymore...
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 28, 2006
1 parent 9b0b12b commit 2fb8afb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions src/video/x11/SDL_x11opengl.c
Expand Up @@ -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;
}
Expand Down
3 changes: 0 additions & 3 deletions src/video/x11/SDL_x11opengl.h
Expand Up @@ -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);
Expand Down

0 comments on commit 2fb8afb

Please sign in to comment.