[Mesa-stable] [Mesa-dev] [PATCH] egl: Fix OpenGL ES version checks in _eglParseContextAttribList()
Tapani
tapani.palli at intel.com
Wed Jul 30 00:10:25 PDT 2014
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 06/19/2014 03:49 AM, Anuj Phogat wrote:
> Fixes gles3 Khronos CTS test:
> egl_create_context.egl_create_context
>
> Cc: <mesa-stable at lists.freedesktop.org>
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
> ---
> src/egl/main/eglcontext.c | 11 ++++++++---
> 1 file changed, 8 insertions(+), 3 deletions(-)
>
> diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c
> index 70277ab..b8b30cb 100644
> --- a/src/egl/main/eglcontext.c
> +++ b/src/egl/main/eglcontext.c
> @@ -322,10 +322,15 @@ _eglParseContextAttribList(_EGLContext *ctx, _EGLDisplay *dpy,
> break;
>
> case 3:
> - default:
> - /* Don't put additional version checks here. We don't know that
> - * there won't be versions > 3.0.
> + /* Update this condition if new OpenGL ES 3.x (x > 1) version is
> + * announced.
> */
> + if (ctx->ClientMinorVersion > 1)
> + err = EGL_BAD_MATCH;
> + break;
> +
> + default:
> + err = EGL_BAD_MATCH;
> break;
> }
> }
More information about the mesa-stable
mailing list