Fix EMIT_ATTR() to populate the draw->vf_attr_to_slot[] array.
authorBrian <brian.paul@tungstengraphics.com>
Tue, 10 Jul 2007 16:53:29 +0000 (10:53 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 10 Jul 2007 16:53:29 +0000 (10:53 -0600)
commit8c1fa904edf991159a53b0f4bba04e2f5e326437
treea3ab97764baa02cc43df085013cca10eecd296bc
parentd68ea4e23fd0cf1fedabb667a8067bfdc3fb308c
Fix EMIT_ATTR() to populate the draw->vf_attr_to_slot[] array.

Note that attribute index has to be biased by two, since vertex->data[]
starts after the header and clipcoord fields.  See comments for details.
Added a bunch of comments/docs.
src/mesa/pipe/draw/draw_vb.c