Skip to content

SDL2 and 3: Impossible to create OpenGL ES 1.0 context via wgl #13056

@edo9300

Description

@edo9300

Currently, SDL always forces the use of EGL when creating a GL ES 1.x context on windows, ignoring entirely the usage of wgl,

return SDL_GetHintBoolean(SDL_HINT_OPENGL_ES_DRIVER, false) || _this->gl_config.major_version == 1 || _this->gl_config.major_version > _this->gl_data->es_profile_max_supported_version.major || (_this->gl_config.major_version == _this->gl_data->es_profile_max_supported_version.major && _this->gl_config.minor_version > _this->gl_data->es_profile_max_supported_version.minor); // No WGL extension for OpenGL ES 1.x profiles.

The comment here No WGL extension for OpenGL ES 1.x profiles is incorrect, as wgl supports creating them, and I've been using it without problems outside of sdl on both nvidia and amd gpus.
In fact forcing a context creation via wgl by stubbing out that check, will make it be properly created

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions