Lines Matching refs:gl_config
110 if ( ! this->gl_config.driver_loaded ) {
131 /* Setup our GLX attributes according to the gl_config. */
135 attribs[i++] = this->gl_config.red_size;
137 attribs[i++] = this->gl_config.green_size;
139 attribs[i++] = this->gl_config.blue_size;
141 if( this->gl_config.alpha_size ) {
143 attribs[i++] = this->gl_config.alpha_size;
146 if( this->gl_config.double_buffer ) {
151 attribs[i++] = this->gl_config.depth_size;
153 if( this->gl_config.stencil_size ) {
155 attribs[i++] = this->gl_config.stencil_size;
158 if( this->gl_config.accum_red_size ) {
160 attribs[i++] = this->gl_config.accum_red_size;
163 if( this->gl_config.accum_green_size ) {
165 attribs[i++] = this->gl_config.accum_green_size;
168 if( this->gl_config.accum_blue_size ) {
170 attribs[i++] = this->gl_config.accum_blue_size;
173 if( this->gl_config.accum_alpha_size ) {
175 attribs[i++] = this->gl_config.accum_alpha_size;
178 if( this->gl_config.stereo ) {
182 if( this->gl_config.multisamplebuffers ) {
184 attribs[i++] = this->gl_config.multisamplebuffers;
187 if( this->gl_config.multisamplesamples ) {
189 attribs[i++] = this->gl_config.multisamplesamples;
192 if( this->gl_config.accelerated >= 0 &&
291 if ( this->gl_config.swap_control >= 0 ) {
295 this->gl_config.swap_control);
297 rc = this->gl_data->glXSwapIntervalMESA(this->gl_config.swap_control);
299 rc = this->gl_data->glXSwapIntervalSGI(this->gl_config.swap_control);
302 this->gl_data->swap_interval = this->gl_config.swap_control;
467 if ( this->gl_config.driver_loaded ) {
469 GL_UnloadObject(this->gl_config.dll_handle);
481 this->gl_config.dll_handle = NULL;
482 this->gl_config.driver_loaded = 0;
520 this->gl_config.dll_handle = handle;
553 GL_UnloadObject(this->gl_config.dll_handle);
554 this->gl_config.dll_handle = NULL;
559 this->gl_config.driver_loaded = 1;
561 SDL_strlcpy(this->gl_config.driver_path, path,
562 SDL_arraysize(this->gl_config.driver_path));
564 *this->gl_config.driver_path = '\0';
574 return GL_LoadFunction(this->gl_config.dll_handle, proc);