softpipe: fix incorrect provoking vertex color for PIPE_PRIM_POLYGON
authorBrian Paul <brianp@vmware.com>
Sun, 31 May 2009 02:07:18 +0000 (20:07 -0600)
committerBrian Paul <brianp@vmware.com>
Sun, 31 May 2009 02:07:18 +0000 (20:07 -0600)
commita59575d8fbe8b0ca053cc8366ce7a42bc660158a
tree04ad16af09e67341fde569c82b8e028d550c7cf0
parent1045481dd96dec6e37f4b623b1dbae8af381de75
softpipe: fix incorrect provoking vertex color for PIPE_PRIM_POLYGON

This fixes the incorrect colors seen when rendering flat-shaded polygons.
Note that clipped polygons were correct, but unclipped polygons were wrong.

See the glean/clipFlat test for regression testing.
src/gallium/drivers/softpipe/sp_prim_vbuf.c