egl: Remove check for GL or GLES

They are the only APIs supported these days and, most likely,
going forward.

Cc: mesa-stable
Signed-off-by: Robert Mader <robert.mader@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35242>
(cherry picked from commit ba1bd9aed8)
This commit is contained in:
Robert Mader 2025-05-30 11:06:57 +02:00 committed by Eric Engestrom
parent b843ba4bf1
commit 2ce5cd09e5
2 changed files with 2 additions and 3 deletions

View file

@ -1394,7 +1394,7 @@
"description": "egl: Remove check for GL or GLES",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -270,8 +270,7 @@ _eglParseContextAttribList(_EGLContext *ctx, _EGLDisplay *disp,
* contexts."
*/
if (!(disp->Extensions.KHR_create_context && api == EGL_OPENGL_API) &&
!(disp->Version >= 15 &&
(api == EGL_OPENGL_API || api == EGL_OPENGL_ES_API))) {
disp->Version < 15) {
err = EGL_BAD_ATTRIBUTE;
break;
}