mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Fixed incorrect return value test for SGI swap control.
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user