Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11gl.c Fri Jun 23 09:01:08 2006 +0000 +++ b/src/video/x11/SDL_x11gl.c Sat Jun 24 02:48:55 2006 +0000 @@ -411,9 +411,10 @@ break; case SDL_GL_SWAP_CONTROL: if (this->gl_data->glXGetSwapIntervalMESA) { - return this->gl_data->glXGetSwapIntervalMESA(); + *value = this->gl_data->glXGetSwapIntervalMESA(); + return (0); } else { - return (-1) /*(this->gl_config.swap_control > 0) */ ; + return (-1); } break; default: @@ -567,3 +568,5 @@ } #endif /* SDL_VIDEO_OPENGL_GLX */ + +/* vi: set ts=4 sw=4 expandtab: */