mesa: add an assertion in _mesa_enable_vertex_array_attrib()
authorBrian Paul <brianp@vmware.com>
Fri, 26 Jan 2018 18:03:57 +0000 (11:03 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Jan 2018 16:07:59 +0000 (09:07 -0700)
commit4ab7e03e1fc7ac6c7cd3a5a1c160726f2a262e66
treeafefe2c750e24cf8649295d1b895fc6545b3b19f
parent7f12791cc655cf649e86e2baf72bfdcec0d5f17a
mesa: add an assertion in _mesa_enable_vertex_array_attrib()

Some of the enable/disable vertex array functions take a zero-based
generic index, while others take a VERT_ATTRIB_GENERIC0-based value.
Add an assertion to clarify that in one place.

Reviewed-by: Gert Wollny <gw.fossdev@gmail.com>
src/mesa/main/varray.c