comparison src/video/x11/SDL_x11gl.c @ 1703:a51dfda0ff33 SDL-1.3

Merged SDL_GL_SWAP_CONTROL fix from SDL 1.2
author Sam Lantinga <slouken@libsdl.org>
date Sat, 24 Jun 2006 02:48:55 +0000
parents 109bdfe06b31
children
comparison
equal deleted inserted replaced
1702:a7ad7081b977 1703:a51dfda0ff33
409 return (-1); 409 return (-1);
410 } 410 }
411 break; 411 break;
412 case SDL_GL_SWAP_CONTROL: 412 case SDL_GL_SWAP_CONTROL:
413 if (this->gl_data->glXGetSwapIntervalMESA) { 413 if (this->gl_data->glXGetSwapIntervalMESA) {
414 return this->gl_data->glXGetSwapIntervalMESA(); 414 *value = this->gl_data->glXGetSwapIntervalMESA();
415 return (0);
415 } else { 416 } else {
416 return (-1) /*(this->gl_config.swap_control > 0) */ ; 417 return (-1);
417 } 418 }
418 break; 419 break;
419 default: 420 default:
420 return (-1); 421 return (-1);
421 } 422 }
565 } 566 }
566 return GL_LoadFunction(handle, proc); 567 return GL_LoadFunction(handle, proc);
567 } 568 }
568 569
569 #endif /* SDL_VIDEO_OPENGL_GLX */ 570 #endif /* SDL_VIDEO_OPENGL_GLX */
571
572 /* vi: set ts=4 sw=4 expandtab: */