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>
This commit is contained in:
Robert Mader 2025-05-30 11:06:57 +02:00 committed by Marge Bot
parent 7cd1f645de
commit ba1bd9aed8

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;
}