mesa: Fix error checks in GetVertexAttrib functions
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 4 Feb 2011 01:56:44 +0000 (17:56 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 4 Feb 2011 20:10:05 +0000 (12:10 -0800)
commit5c3f1cdbbeb4d787bad7729ccd3f10aa78d113ac
tree9d0fc2a18025b1f93270c8d56b4c118a1aaa07a7
parentce9171f9d8e0e2c2422fdddb198f8d548381b7ea
mesa: Fix error checks in GetVertexAttrib functions

Querying index zero is not an error in OpenGL ES 2.0.

Querying an index larger than the value returned by
GL_MAX_VERTEX_ATTRIBS is an error in all APIs.

Fixes bugzilla #32375.
src/mesa/main/varray.c