Commit f0fa63a5 authored by Sam Lantinga's avatar Sam Lantinga

Create an OpenGL 1.1 context by default, if available.

This is easier for people to set up and work with, and is more conformant to the way desktop OpenGL works.
parent 6fe14e17
...@@ -488,12 +488,12 @@ SDL_VideoInit(const char *driver_name) ...@@ -488,12 +488,12 @@ SDL_VideoInit(const char *driver_name)
#if SDL_VIDEO_OPENGL #if SDL_VIDEO_OPENGL
_this->gl_config.major_version = 2; _this->gl_config.major_version = 2;
_this->gl_config.minor_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;
#elif SDL_VIDEO_OPENGL_ES #elif SDL_VIDEO_OPENGL_ES
_this->gl_config.major_version = 1; _this->gl_config.major_version = 1;
_this->gl_config.minor_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 #endif
/* Initialize the video subsystem */ /* Initialize the video subsystem */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment