From 8e7f7e9693814dec8196953786f4ae2e738453e2 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Wed, 17 Apr 2013 15:21:35 -0700 Subject: draw/so: respect leading/provoking vertex info we were ignoring leading/provoking vertex settings which was breaking decomposition of some strips. Signed-off-by: Zack Rusin Reviewed-by: Jose Fonseca --- src/gallium/auxiliary/draw/draw_so_emit_tmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/draw/draw_so_emit_tmp.h b/src/gallium/auxiliary/draw/draw_so_emit_tmp.h index 4611cd00426..282a52d1c01 100644 --- a/src/gallium/auxiliary/draw/draw_so_emit_tmp.h +++ b/src/gallium/auxiliary/draw/draw_so_emit_tmp.h @@ -10,7 +10,7 @@ const unsigned prim = input_prims->prim; \ const unsigned prim_flags = input_prims->flags; \ const boolean quads_flatshade_last = FALSE; \ - const boolean last_vertex_last = TRUE; \ + const boolean last_vertex_last = !so->draw->rasterizer->flatshade_first; \ do { \ switch (prim) { \ case PIPE_PRIM_LINES_ADJACENCY: \ -- cgit v1.2.3