mesa: Use the Elements macro for the sampler index assert in validate_samplers().
authorHenri Verbeet <hverbeet@gmail.com>
Sun, 3 Jul 2011 22:57:42 +0000 (00:57 +0200)
committerHenri Verbeet <hverbeet@gmail.com>
Thu, 7 Jul 2011 18:30:13 +0000 (20:30 +0200)
commit47441956284b3e22df2ee8500667617d2880bfc8
treeae9f45dda0e42c0d96fb1fa76dba85f2172137e6
parent86adc2b29effb573c18eb0de7016cef605ab1edc
mesa: Use the Elements macro for the sampler index assert in validate_samplers().

This is probably nicer if the array size ever changes.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/shaderapi.c