Fixed incorrect return value test for SGI swap control. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sat, 10 Oct 2009 05:21:31 +0000
branchSDL-1.2
changeset 4289 91c458013850
parent 4288 4ab46e81d08e
child 4290 485868a1c283
Fixed incorrect return value test for SGI swap control.
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;
 			}
 		}