OSDN Git Service

draw/gs: Correctly iterate the emitted primitives
authorZack Rusin <zackr@vmware.com>
Fri, 8 Mar 2013 03:15:03 +0000 (19:15 -0800)
committerZack Rusin <zackr@vmware.com>
Fri, 8 Mar 2013 04:16:07 +0000 (20:16 -0800)
commit7295fad2043e2cb09fd1c0b98357464062478912
treee9209d1cdaed794a1d007f668898f12bb9ea582d
parente5406f70589049b12cbff8b1a5b451001d46e687
draw/gs: Correctly iterate the emitted primitives

We were assuming that each emitted primitive had the same
number of vertices. That is incorrect. Emitted primitives
can have arbirtrary number of vertices. Simply increment
index on iteration to fix it.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/draw/draw_gs.c