We're not querying the glX attributes anymore...
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401999
This commit is contained in:
parent
931e1c106d
commit
529b4ad049
2 changed files with 1 additions and 7 deletions
|
@ -109,15 +109,12 @@ X11_GL_LoadLibrary(_THIS, const char *path)
|
||||||
_this->gl_data->glXSwapBuffers =
|
_this->gl_data->glXSwapBuffers =
|
||||||
(void (*)(Display *, GLXDrawable)) GL_LoadFunction(handle,
|
(void (*)(Display *, GLXDrawable)) GL_LoadFunction(handle,
|
||||||
"glXSwapBuffers");
|
"glXSwapBuffers");
|
||||||
_this->gl_data->glXGetConfig =
|
|
||||||
(int (*)(Display *, XVisualInfo *, int, int *))
|
|
||||||
GL_LoadFunction(handle, "glXGetConfig");
|
|
||||||
|
|
||||||
if (!_this->gl_data->glXChooseVisual ||
|
if (!_this->gl_data->glXChooseVisual ||
|
||||||
!_this->gl_data->glXCreateContext ||
|
!_this->gl_data->glXCreateContext ||
|
||||||
!_this->gl_data->glXDestroyContext ||
|
!_this->gl_data->glXDestroyContext ||
|
||||||
!_this->gl_data->glXMakeCurrent ||
|
!_this->gl_data->glXMakeCurrent ||
|
||||||
!_this->gl_data->glXSwapBuffers || !_this->gl_data->glXGetConfig) {
|
!_this->gl_data->glXSwapBuffers) {
|
||||||
SDL_SetError("Could not retrieve OpenGL functions");
|
SDL_SetError("Could not retrieve OpenGL functions");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,9 +50,6 @@ struct SDL_GLDriverData
|
||||||
void (*glXSwapBuffers)
|
void (*glXSwapBuffers)
|
||||||
(Display * dpy, GLXDrawable drawable);
|
(Display * dpy, GLXDrawable drawable);
|
||||||
|
|
||||||
int (*glXGetConfig)
|
|
||||||
(Display * dpy, XVisualInfo * visual_info, int attrib, int *value);
|
|
||||||
|
|
||||||
int (*glXSwapIntervalSGI) (int interval);
|
int (*glXSwapIntervalSGI) (int interval);
|
||||||
GLint(*glXSwapIntervalMESA) (unsigned interval);
|
GLint(*glXSwapIntervalMESA) (unsigned interval);
|
||||||
GLint(*glXGetSwapIntervalMESA) (void);
|
GLint(*glXGetSwapIntervalMESA) (void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue