Skip to content

Commit

Permalink
Fixed incorrect return value test for SGI swap control.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 10, 2009
1 parent ad171eb commit 2f5962c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11gl.c
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 2f5962c

Please sign in to comment.