Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed incorrect return value test for SGI swap control.
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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; |
|
|
} |
|
|
} |
|
|