path: root/src
diff options
authorBrian Paul <>2009-06-01 15:07:07 -0600
committerBrian Paul <>2009-06-01 15:07:07 -0600
commitdcf6fe16e03f7baddbf7789cbf3ca31e0ed529b2 (patch)
treec38b45549f14248cf7c8fd8720884b4bcf41cf19 /src
parent8213783a0eff093c50d5ec3a25512c7b6af4a79e (diff)
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. (cherry picked from commit 427554211b5b8ab2c6afcd5bd574ac97fb3457da)
Diffstat (limited to 'src')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_wide_point.c b/src/gallium/auxiliary/draw/draw_pipe_wide_point.c
index e1af9e56a24..99ef2d3fcf4 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_wide_point.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_wide_point.c
@@ -253,6 +253,7 @@ static void widepoint_flush( struct draw_stage *stage, unsigned flags )
stage->point = widepoint_first_point;
stage->next->flush( stage->next, flags );
+ stage->draw->extra_vp_outputs.slot = 0;