Commit f9ef094b authored by Ryan C. Gordon's avatar Ryan C. Gordon

Fixed incorrect return value test for SGI swap control.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403999
parent f9c9c5e9
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment