Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compile problems with new OpenGL API.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 7, 2006
1 parent 20279e5 commit d980263
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 7 additions & 0 deletions include/SDL_video.h
Expand Up @@ -242,6 +242,13 @@ typedef enum
*/
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) */
Expand Down
1 change: 0 additions & 1 deletion src/video/SDL_sysvideo.h
Expand Up @@ -290,7 +290,6 @@ struct SDL_VideoDevice
int multisamplebuffers;
int multisamplesamples;
int accelerated;
int swap_control;
int driver_loaded;
char driver_path[256];
void *dll_handle;
Expand Down
4 changes: 0 additions & 4 deletions src/video/SDL_video.c
Expand Up @@ -253,7 +253,6 @@ SDL_VideoInit(const char *driver_name, Uint32 flags)
_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) {
Expand Down Expand Up @@ -1971,9 +1970,6 @@ SDL_GL_SetAttribute(SDL_GLattr attr, int value)
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;
Expand Down

0 comments on commit d980263

Please sign in to comment.