mesa: Support querying GL_MAX_ELEMENT_INDEX in ES 3
authorMatt Turner <mattst88@gmail.com>
Sun, 9 Dec 2012 01:24:19 +0000 (17:24 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 10 Jan 2013 18:57:51 +0000 (10:57 -0800)
commit532e05a9d094fdcdeb2c8dfd0bec6eab82dc8163
tree60e1b76aecb5843d01fe9311850e9e084e9f3bfc
parent92855727f1e0ce1a9861e8f7b6c3ca2b6ffbe440
mesa: Support querying GL_MAX_ELEMENT_INDEX in ES 3

The ES 3 spec says that the minumum allowable value is 2^24-1, but the
GL 4.3 and ARB_ES3_compatibility specs require 2^32-1, so return 2^32-1.

Fixes es3conform's element_index_uint_constants test.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/context.c
src/mesa/main/get.c
src/mesa/main/get_hash_params.py
src/mesa/main/mtypes.h