Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
1879:cb232e63552c | 1880:9d940db55a91 |
---|---|
399 return(-1); | 399 return(-1); |
400 } | 400 } |
401 break; | 401 break; |
402 case SDL_GL_SWAP_CONTROL: | 402 case SDL_GL_SWAP_CONTROL: |
403 if ( this->gl_data->glXGetSwapIntervalMESA ) { | 403 if ( this->gl_data->glXGetSwapIntervalMESA ) { |
404 return this->gl_data->glXGetSwapIntervalMESA(); | 404 *value = this->gl_data->glXGetSwapIntervalMESA(); |
405 return(0); | |
405 } else { | 406 } else { |
406 return(-1)/*(this->gl_config.swap_control > 0)*/; | 407 return(-1); |
407 } | 408 } |
408 break; | 409 break; |
409 default: | 410 default: |
410 return(-1); | 411 return(-1); |
411 } | 412 } |