diff options
author | Marta Lofstedt <[email protected]> | 2015-07-23 16:38:32 +0200 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2015-07-29 09:59:44 +0300 |
commit | d1bb3b4910e6c02344550b8982aa8442cd7efd29 (patch) | |
tree | bfa582490e38841f3a30dd10d7fb32f36415db55 /src/mesa/main/get.c | |
parent | c00d093c8f247c41f9122143c49ffa93865a0ded (diff) |
mesa/es3.1: Add ES 3.1 handling to get.c and get_hash_generator.py
Signed-off-by: Marta Lofstedt <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index ce786915508..ec7eb718ef8 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1232,10 +1232,13 @@ find_value(const char *func, GLenum pname, void **p, union value *v) * value since it's compatible with GLES2 its entry in table_set[] is at the * end. */ - STATIC_ASSERT(ARRAY_SIZE(table_set) == API_OPENGL_LAST + 2); + STATIC_ASSERT(ARRAY_SIZE(table_set) == API_OPENGL_LAST + 3); if (_mesa_is_gles3(ctx)) { api = API_OPENGL_LAST + 1; } + if (_mesa_is_gles31(ctx)) { + api = API_OPENGL_LAST + 2; + } mask = ARRAY_SIZE(table(api)) - 1; hash = (pname * prime_factor); while (1) { |