[Mesa-stable] [PATCH] egl: Fix OpenGL ES version checks in _eglParseContextAttribList()
Anuj Phogat
anuj.phogat at gmail.com
Wed Jun 18 17:49:08 PDT 2014
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;
}
}
--
1.8.3.1
More information about the mesa-stable
mailing list