mesa: Fix glGetActiveAttribute for gl_VertexID when lowered.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 8 Aug 2014 05:42:55 +0000 (22:42 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 10 Sep 2014 18:05:08 +0000 (11:05 -0700)
commit26e949b26effe741f9792e3efcba31c7209f3465
tree82299112c1d68bbecd44b0d155edaab7e5afba0d
parent26c9514155bfcd1cf2cfeb2cfdb5d4b78a8072b0
mesa: Fix glGetActiveAttribute for gl_VertexID when lowered.

The lower_vertex_id pass converts uses of the gl_VertexID system value
to the gl_BaseVertex and gl_VertexIDMESA system values.  Since
gl_VertexID is no longer accessed, it would not be considered active.

Of course, it should be, since the shader uses gl_VertexID.

v2: Move the var->name dereference past the var != NULL check.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/shader_query.cpp