# HG changeset patch # User Sam Lantinga # Date 1152268773 0 # Node ID 0ef52d56e8bb2bd8df5880f53f0d7fdc299dcbfd # Parent b1ee090d194f87c2b74a65b012258617ce3588d1 Fixed compile problems with new OpenGL API. diff -r b1ee090d194f -r 0ef52d56e8bb include/SDL_video.h --- 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) */ diff -r b1ee090d194f -r 0ef52d56e8bb src/video/SDL_sysvideo.h --- 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; diff -r b1ee090d194f -r 0ef52d56e8bb src/video/SDL_video.c --- 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;