mesa: make vertex array type error checking a little more efficient
authorBrian Paul <brianp@vmware.com>
Tue, 29 Jul 2014 15:17:53 +0000 (09:17 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 5 Aug 2014 16:18:34 +0000 (10:18 -0600)
commit6719914f982b5700217b34c97551018d1e02ca45
tree5bb4ae992da6b290d37e056602ea0abbf64d329b
parent3347c634d0508af93445b1ac1bdec1f55e2b2ae0
mesa: make vertex array type error checking a little more efficient

Compute the bitmask of supported array types once instead of every
time we call a GL vertex array function.

Reviewed-by: Matthew McClure <mcclurem@vmware.com>
src/mesa/main/mtypes.h
src/mesa/main/varray.c