1.1 --- a/src/video/x11/SDL_x11gl.c Tue Sep 29 13:42:33 2009 +0000
1.2 +++ b/src/video/x11/SDL_x11gl.c Tue Sep 29 13:50:33 2009 +0000
1.3 @@ -289,7 +289,9 @@
1.4 if ( this->gl_data->glXSwapIntervalMESA ) {
1.5 this->gl_data->glXSwapIntervalMESA(this->gl_config.swap_control);
1.6 } else if ( this->gl_data->glXSwapIntervalSGI ) {
1.7 - this->gl_data->glXSwapIntervalSGI(this->gl_config.swap_control);
1.8 + if (this->gl_data->glXSwapIntervalSGI(this->gl_config.swap_control) != 0) {
1.9 + this->gl_data->sgi_swap_interval = this->gl_config.swap_control;
1.10 + }
1.11 }
1.12 }
1.13 #else
1.14 @@ -412,7 +414,10 @@
1.15 case SDL_GL_SWAP_CONTROL:
1.16 if ( this->gl_data->glXGetSwapIntervalMESA ) {
1.17 *value = this->gl_data->glXGetSwapIntervalMESA();
1.18 - return(0);
1.19 + return 0;
1.20 + } else if ( this->gl_data->glXSwapIntervalSGI ) {
1.21 + *value = this->gl_data->sgi_swap_interval;
1.22 + return 0;
1.23 } else {
1.24 unsupported = 1;
1.25 }