mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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>
(cherry picked from commit 0532365759)
This commit is contained in:
parent
0bd028967f
commit
4ffcada229
2 changed files with 3 additions and 3 deletions
|
|
@ -193,7 +193,7 @@
|
|||
"description": "egl: support no error attribute set to false with ES 1.1",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue