Skip to content
Permalink
Browse files

Fixed incorrect return value test for SGI swap control.

  • Loading branch information
icculus committed Oct 10, 2009
1 parent ad171eb commit 2f5962ca1a5d9b30380c2e0828fbd55b3d763fff
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/x11/SDL_x11gl.c
@@ -289,7 +289,7 @@ int X11_GL_CreateContext(_THIS)
if ( this->gl_data->glXSwapIntervalMESA ) {
this->gl_data->glXSwapIntervalMESA(this->gl_config.swap_control);
} else if ( this->gl_data->glXSwapIntervalSGI ) {
if (this->gl_data->glXSwapIntervalSGI(this->gl_config.swap_control) != 0) {
if (this->gl_data->glXSwapIntervalSGI(this->gl_config.swap_control) == 0) {
this->gl_data->sgi_swap_interval = this->gl_config.swap_control;
}
}

0 comments on commit 2f5962c

Please sign in to comment.