mesa: fix VIEWPORT_INDEX_PROVOKING_VERTEX and LAYER_PROVOKING_VERTEX queries
authorRoland Scheidegger <sroland@vmware.com>
Tue, 1 Dec 2015 19:06:59 +0000 (20:06 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 2 Dec 2015 17:20:57 +0000 (18:20 +0100)
commit09f74e6ef45859a3b595e2932e2be3e7d7ab6ca0
tree0ce024685198c2b642462dfc87d56346203a444a
parent56aff6bb4eafe35ba301f5d60027377abc4cfd9f
mesa: fix VIEWPORT_INDEX_PROVOKING_VERTEX and LAYER_PROVOKING_VERTEX queries

These are implementation-dependent queries, but so far we just returned the
value of whatever the current provoking vertex convention was set to, which
was clearly wrong.
Just make this a variable in the context constants like for other things
which are implementation dependent (I assume all drivers will want to set
this to the same value for both queries), and set it to GL_UNDEFINED_VERTEX
which is correct for everybody (and drivers can override it).

Reviewed-by: Brian Paul <brianp@vmware.com>
CC: <mesa-stable@lists.freedesktop.org>
src/mesa/main/context.c
src/mesa/main/get_hash_params.py
src/mesa/main/mtypes.h