draw: reset extra_vp_outputs.slot to zero in widepoint_flush()
authorBrian Paul <brianp@vmware.com>
Mon, 1 Jun 2009 20:28:57 +0000 (14:28 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 1 Jun 2009 20:28:57 +0000 (14:28 -0600)
commit427554211b5b8ab2c6afcd5bd574ac97fb3457da
tree8355e7413641ade184a7821b602c8f86ca720342
parenta5d033e89bab6c5e913cd2ca17df02e56b5fe31d
draw: reset extra_vp_outputs.slot to zero in widepoint_flush()

Fixes a crash when clearing the window with a quad after drawing large
points.  We were asking the draw module how many vertex shader outputs
there were and got 3 instead of 2.  This led to creating vertices with
too many attributes and trying to read invalid memory.

We reset extra_vp_outputs.slot to zero in the aaline/aapoint stage's
flush functions already.
This omission was just an oversight in the wide_point stage.
src/gallium/auxiliary/draw/draw_pipe_wide_point.c