ir_to_mesa: Fix the indexing of attributes in the program's Attributes.
authorEric Anholt <eric@anholt.net>
Wed, 30 Jun 2010 21:01:43 +0000 (14:01 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 30 Jun 2010 21:44:14 +0000 (14:44 -0700)
commitc64da87611823b4b53e93188f861f748a69936a3
treef9decf6aa2dbe827b78928999083d73b2bb2a889
parentc7f4ff193a6f7cfae2e4cdc6c4b9162a16226dc0
ir_to_mesa: Fix the indexing of attributes in the program's Attributes.

This fixes GetAttribLocation returning VERT_ATTRIB_GENERIC1 instead of 1,
caught by glsl-dlist-getattriblocation.
src/mesa/shader/ir_to_mesa.cpp