Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11gl.c @ 1880:9d940db55a91
Fixed bug #260
Fixed SDL_GL_SWAP_CONTROL on Windows, and the query on Linux
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 24 Jun 2006 01:59:43 +0000 |
parents | b42823412c3b |
children | c121d94672cb 0e0883cb7137 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11gl.c Fri Jun 23 08:39:05 2006 +0000 +++ b/src/video/x11/SDL_x11gl.c Sat Jun 24 01:59:43 2006 +0000 @@ -401,9 +401,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: