egl: Add OpenGL_ES to API string regardless of GLES version
authorPlamena Manolova <plamena.manolova@intel.com>
Thu, 12 May 2016 17:21:38 +0000 (18:21 +0100)
committerBen Widawsky <benjamin.widawsky@intel.com>
Mon, 23 May 2016 20:46:01 +0000 (13:46 -0700)
commit21edd24c0de903a12a92e969b78d3a928b9ed50c
tree95a12eebb41f506b4f47fc6eae3117da06001b0e
parent46ff17559b1369f0fe7dca000f51f077ffd1dae5
egl: Add OpenGL_ES to API string regardless of GLES version

According to the EGL specifications eglQueryString(EGL_CLIENT_APIS)
should return a string containing a combination of "OpenGL", "OpenGL_ES"
and "OpenVG", any other values would be considered invalid. Due to this
when the API string is constructed, the version of GLES should be
disregarded and "OpenGL_ES" should be attached once instead of
"OpenGL_ES2" and "OpenGL_ES3".

Fixes:
dEQP-EGL.functional.negative_api* and
dEQP-EGL.functional.query_context.simple.query_api

Signed-off-by: Plamena Manolova <plamena.manolova@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/egl/main/eglapi.c