mesa: return INVALID_VALUE from VertexAttribDivisor if index out of range
authorMatt Turner <mattst88@gmail.com>
Tue, 13 Nov 2012 21:05:03 +0000 (13:05 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 15 Nov 2012 23:21:28 +0000 (15:21 -0800)
commitae1f09babb9c127d573050f4338b6f3d55cba377
tree007671b0840680314ddceed99b4a0f9212b2037f
parente21debbf751c86a991dc1fdc39bc4e3b7b82b9cb
mesa: return INVALID_VALUE from VertexAttribDivisor if index out of range

All the other range checks on index already return the proper error,
INVALID_VALUE.

Fixes gles3conform's instanced_arrays_invalid test.
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/varray.c