diff options
author | Zack Rusin <zackr@vmware.com> | 2013-04-17 15:21:35 -0700 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2013-04-17 15:43:50 -0700 |
commit | 8e7f7e9693814dec8196953786f4ae2e738453e2 (patch) | |
tree | 7e3b08fcda23bff7866863f5f8f6713b3d5daa07 | |
parent | 6bb217a4898b64add9c0a3b77cc0ce48409988f7 (diff) |
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 <zackr@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
-rw-r--r-- | src/gallium/auxiliary/draw/draw_so_emit_tmp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_so_emit_tmp.h b/src/gallium/auxiliary/draw/draw_so_emit_tmp.h index 4611cd0042..282a52d1c0 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: \ |