indices: fix conversion of PIPE_PRIM_POLYGON to lines
authorBrian Paul <brianp@vmware.com>
Fri, 24 Jun 2011 00:44:42 +0000 (18:44 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 24 Jun 2011 22:44:43 +0000 (16:44 -0600)
commit6b28b44d458177209705637f759d03a27fa100f1
tree26af0c2e6ce2258125b93353a586372b69643f90
parent95c2e0b601fd333cc73d7f214a3cd949f7e45aac
indices: fix conversion of PIPE_PRIM_POLYGON to lines

When the fill mode is PIPE_POLYGON_MODE_LINE we were basically
converting the polygon into triangles, then drawing the outline of all
the triangles.  But we really only want to draw the lines around the
perimeter of the polygon, not the interior lines.

NOTE: This is a candidate for the 7.10 branch.
src/gallium/auxiliary/indices/u_unfilled_gen.py
src/gallium/auxiliary/indices/u_unfilled_indices.c