mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Default to OpenGL ES 2.0 instead of 1.0 when it's available.
This commit is contained in:
parent
d3d6f9ad19
commit
0103bc0bff
@ -481,14 +481,14 @@ 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_ES
|
|
||||||
_this->gl_config.major_version = 1;
|
|
||||||
_this->gl_config.minor_version = 1;
|
|
||||||
_this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
|
|
||||||
#elif SDL_VIDEO_OPENGL_ES2
|
#elif SDL_VIDEO_OPENGL_ES2
|
||||||
_this->gl_config.major_version = 2;
|
_this->gl_config.major_version = 2;
|
||||||
_this->gl_config.minor_version = 0;
|
_this->gl_config.minor_version = 0;
|
||||||
_this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
|
_this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
|
||||||
|
#elif SDL_VIDEO_OPENGL_ES
|
||||||
|
_this->gl_config.major_version = 1;
|
||||||
|
_this->gl_config.minor_version = 1;
|
||||||
|
_this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
|
||||||
#endif
|
#endif
|
||||||
_this->gl_config.flags = 0;
|
_this->gl_config.flags = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user