Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11gl.c @ 4289:91c458013850 SDL-1.2
Fixed incorrect return value test for SGI swap control.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sat, 10 Oct 2009 05:21:31 +0000 |
parents | d48035d857d3 |
children | 485868a1c283 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11gl.c Sat Oct 10 05:17:47 2009 +0000 +++ b/src/video/x11/SDL_x11gl.c Sat Oct 10 05:21:31 2009 +0000 @@ -289,7 +289,7 @@ 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; } }