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

Commit

Permalink
Create an OpenGL 1.1 context by default, if available.
Browse files Browse the repository at this point in the history
This is easier for people to set up and work with, and is more conformant to the way desktop OpenGL works.
  • Loading branch information
slouken committed Feb 7, 2011
1 parent f9dd606 commit c662582
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/video/SDL_video.c
Expand Up @@ -488,12 +488,12 @@ SDL_VideoInit(const char *driver_name)
#if SDL_VIDEO_OPENGL
_this->gl_config.major_version = 2;
_this->gl_config.minor_version = 1;
#elif SDL_VIDEO_OPENGL_ES2
_this->gl_config.major_version = 2;
_this->gl_config.minor_version = 0;
#elif SDL_VIDEO_OPENGL_ES
_this->gl_config.major_version = 1;
_this->gl_config.minor_version = 1;
#elif SDL_VIDEO_OPENGL_ES2
_this->gl_config.major_version = 2;
_this->gl_config.minor_version = 0;
#endif

/* Initialize the video subsystem */
Expand Down

0 comments on commit c662582

Please sign in to comment.