Fixes gles3 Khronos CTS test:
egl_create_context.egl_create_context

Cc: <mesa-sta...@lists.freedesktop.org>
Signed-off-by: Anuj Phogat <anuj.pho...@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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to