diff options
author | Chad Versace <[email protected]> | 2012-11-20 17:04:45 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-01-10 10:57:51 -0800 |
commit | 75b963c095d28e1a1b31753142e2d5f934b62f79 (patch) | |
tree | 70550f02c8122e1c9c575412197f6eabf049f36c /src/mesa/main/get.c | |
parent | 532e05a9d094fdcdeb2c8dfd0bec6eab82dc8163 (diff) |
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 <[email protected]> (v1)
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index e15cbd473a8..039c32161d9 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -364,6 +364,12 @@ static const int extra_version_30[] = { EXTRA_VERSION_30, EXTRA_END }; static const int extra_version_31[] = { EXTRA_VERSION_31, EXTRA_END }; static const int extra_version_32[] = { EXTRA_VERSION_32, EXTRA_END }; +static const int extra_gl30_es3[] = { + EXTRA_VERSION_30, + EXTRA_API_ES3, + EXTRA_END, +}; + static const int extra_ARB_vertex_program_api_es2[] = { EXT(ARB_vertex_program), |