diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-22 13:00:49 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-22 13:00:49 -0600 |
commit | 58fadc624281b3f0bbe084e3e8af28a61036ca94 (patch) | |
tree | a3c62a35723a234e44a8db60551ef93592530fee /src/mesa | |
parent | 995456f9305593005f8466520314ee087f3d422a (diff) |
demos: fix multitex.c VertCoord attribute mapping
If the multitex.vert shader uses the VertCoord generic vertex attribute
instead of the pre-defined gl_Vertex attribute, we need to make sure that
VertCoord gets bound to generic vertex attribute zero.
That's because we need to call glVertexAttrib2fv(0, xy) after all the other
vertex attributes have been set since setting generic attribute 0 triggers
vertex submission. Before, we wound up issuing the vertex attributes in
the order 0, 1, 2 which caused the first vertex to be submitted before all
the attributes were set. Now, the attributes are set in 1, 2, 0 order.
Diffstat (limited to 'src/mesa')
0 files changed, 0 insertions, 0 deletions