Fixed compile problems with new OpenGL API. SDL-1.3
authorSam Lantinga <slouken@libsdl.org>
Fri, 07 Jul 2006 10:39:33 +0000
branchSDL-1.3
changeset 1729 0ef52d56e8bb
parent 1728 b1ee090d194f
child 1730 e70477157db9
Fixed compile problems with new OpenGL API.
include/SDL_video.h
src/video/SDL_sysvideo.h
src/video/SDL_video.c
--- 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;