comparison src/video/x11/SDL_x11opengl.c @ 1953:214880ed48c3

We're not querying the glX attributes anymore...
author Sam Lantinga <slouken@libsdl.org>
date Fri, 28 Jul 2006 08:46:24 +0000
parents 420716272158
children c20e158a9299
comparison
equal deleted inserted replaced
1952:420716272158 1953:214880ed48c3
107 (int (*)(Display *, GLXDrawable, GLXContext)) GL_LoadFunction(handle, 107 (int (*)(Display *, GLXDrawable, GLXContext)) GL_LoadFunction(handle,
108 "glXMakeCurrent"); 108 "glXMakeCurrent");
109 _this->gl_data->glXSwapBuffers = 109 _this->gl_data->glXSwapBuffers =
110 (void (*)(Display *, GLXDrawable)) GL_LoadFunction(handle, 110 (void (*)(Display *, GLXDrawable)) GL_LoadFunction(handle,
111 "glXSwapBuffers"); 111 "glXSwapBuffers");
112 _this->gl_data->glXGetConfig =
113 (int (*)(Display *, XVisualInfo *, int, int *))
114 GL_LoadFunction(handle, "glXGetConfig");
115 112
116 if (!_this->gl_data->glXChooseVisual || 113 if (!_this->gl_data->glXChooseVisual ||
117 !_this->gl_data->glXCreateContext || 114 !_this->gl_data->glXCreateContext ||
118 !_this->gl_data->glXDestroyContext || 115 !_this->gl_data->glXDestroyContext ||
119 !_this->gl_data->glXMakeCurrent || 116 !_this->gl_data->glXMakeCurrent ||
120 !_this->gl_data->glXSwapBuffers || !_this->gl_data->glXGetConfig) { 117 !_this->gl_data->glXSwapBuffers) {
121 SDL_SetError("Could not retrieve OpenGL functions"); 118 SDL_SetError("Could not retrieve OpenGL functions");
122 return -1; 119 return -1;
123 } 120 }
124 121
125 _this->gl_config.dll_handle = handle; 122 _this->gl_config.dll_handle = handle;