summaryrefslogtreecommitdiff
path: root/src/egl/main/eglcontext.c
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2021-04-06 19:03:04 +0300
committerTapani Pälli <tapani.palli@intel.com>2021-04-09 08:02:21 +0300
commit053236575958bb2a29ad88b77021e0ea3f08a957 (patch)
tree782d2d312c180e5c02e206105f2b733d29477b33 /src/egl/main/eglcontext.c
parenteeec9d56ad3265794a2db65e11fedbe0154ed28c (diff)
egl: support no error attribute set to false with ES 1.1
We advertise the extension so it should support case where context has attribute EGL_CONTEXT_OPENGL_NO_ERROR_KHR set to EGL_FALSE indepdendent of ES version used. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4586 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10102>
Diffstat (limited to 'src/egl/main/eglcontext.c')
-rw-r--r--src/egl/main/eglcontext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c
index 65dc886abbb..15de7c99496 100644
--- a/src/egl/main/eglcontext.c
+++ b/src/egl/main/eglcontext.c
@@ -334,8 +334,8 @@ _eglParseContextAttribList(_EGLContext *ctx, _EGLDisplay *disp,
/* The KHR_no_error spec only applies against OpenGL 2.0+ and
* OpenGL ES 2.0+
*/
- if ((api != EGL_OPENGL_API && api != EGL_OPENGL_ES_API) ||
- ctx->ClientMajorVersion < 2) {
+ if (((api != EGL_OPENGL_API && api != EGL_OPENGL_ES_API) ||
+ ctx->ClientMajorVersion < 2) && val == EGL_TRUE) {
err = EGL_BAD_ATTRIBUTE;
break;
}