draw: Fix bug when drawing ushort indices.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 29 Mar 2011 14:35:30 +0000 (15:35 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 30 Mar 2011 15:05:24 +0000 (16:05 +0100)
commit713230ff39cd22a2082c12b937889c3ef81973ac
tree30687551f617345136f2d1b56cac35e206e865a6
parent6584d0cd4fa3a3255a4c0962f31338601df705cb
draw: Fix bug when drawing ushort indices.

When the condition

 min_index == 0 && sizeof(ib[0]) == sizeof(draw_elts[0])

was true, we were wrongly ignoring istart and processing indices 0.

Reorder some statements to make the code easier to understand.
src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h