# HG changeset patch # User Ryan C. Gordon # Date 1255152091 0 # Node ID 91c4580138504daf89a8d145577dcf56b6b67556 # Parent 4ab46e81d08e672cb0648f06797d94109f244b61 Fixed incorrect return value test for SGI swap control. diff -r 4ab46e81d08e -r 91c458013850 src/video/x11/SDL_x11gl.c --- 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; } }