Mercurial > sdl-ios-xcode
changeset 1729:0ef52d56e8bb SDL-1.3
Fixed compile problems with new OpenGL API.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 07 Jul 2006 10:39:33 +0000 |
parents | b1ee090d194f |
children | e70477157db9 |
files | include/SDL_video.h src/video/SDL_sysvideo.h src/video/SDL_video.c |
diffstat | 3 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/include/SDL_video.h Fri Jul 07 10:39:02 2006 +0000 +++ b/include/SDL_video.h Fri Jul 07 10:39:33 2006 +0000 @@ -242,6 +242,13 @@ */ typedef Uint32 SDL_TextureID; +/** + * \typedef SDL_GLContext + * + * \brief An opaque handle to an OpenGL context. + */ +typedef void *SDL_GLContext; + /* These are the currently supported flags for the SDL_surface */ /* Used internally (read-only) */
--- a/src/video/SDL_sysvideo.h Fri Jul 07 10:39:02 2006 +0000 +++ b/src/video/SDL_sysvideo.h Fri Jul 07 10:39:33 2006 +0000 @@ -290,7 +290,6 @@ int multisamplebuffers; int multisamplesamples; int accelerated; - int swap_control; int driver_loaded; char driver_path[256]; void *dll_handle;
--- a/src/video/SDL_video.c Fri Jul 07 10:39:02 2006 +0000 +++ b/src/video/SDL_video.c Fri Jul 07 10:39:33 2006 +0000 @@ -253,7 +253,6 @@ _this->gl_config.multisamplebuffers = 0; _this->gl_config.multisamplesamples = 0; _this->gl_config.accelerated = -1; /* not known, don't set */ - _this->gl_config.swap_control = -1; /* not known, don't set */ /* Initialize the video subsystem */ if (_this->VideoInit(_this) < 0) { @@ -1971,9 +1970,6 @@ case SDL_GL_ACCELERATED_VISUAL: _this->gl_config.accelerated = value; break; - case SDL_GL_SWAP_CONTROL: - _this->gl_config.swap_control = value; - break; default: SDL_SetError("Unknown OpenGL attribute"); retval = -1;