mirror of
https://github.com/yawut/SDL.git
synced 2026-04-19 23:27:32 -05:00
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.
This commit is contained in:
parent
1163ebc192
commit
45cb5ded3a
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user