mesa: Support more glGet enums for ES3
authorChad Versace <chad.versace@linux.intel.com>
Wed, 21 Nov 2012 01:04:45 +0000 (17:04 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 10 Jan 2013 18:57:51 +0000 (10:57 -0800)
commit75b963c095d28e1a1b31753142e2d5f934b62f79
tree70550f02c8122e1c9c575412197f6eabf049f36c
parent532e05a9d094fdcdeb2c8dfd0bec6eab82dc8163
mesa: Support more glGet enums for ES3

For glGetIntegerv, add support for the following in an OpenGL ES 3.0
context:
    GL_MAJOR_VERSION
    GL_MINOR_VERSION
    GL_NUM_EXTENSIONS

See Table 6.29 of the OpenGL ES 3.0 spec.

Fixes error GL_INVALID_ENUM in piglit egl-create-context-verify-gl-flavor,
testcase for OpenGL ES 3.0.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/main/get.c
src/mesa/main/get_hash_params.py