diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-03-09 04:40:55 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-03-09 04:51:43 +0100 |
commit | f3365bceb881b7a5cdd47e6c102ca37454453ce9 (patch) | |
tree | ab2c982cd7c0eec2d342f767d9d41317773b0d1e /src/gallium/auxiliary/draw/draw_pt_decompose.h | |
parent | 558ce9964f7edeefbe07b002a341fb9275b3c69b (diff) | |
download | external_mesa3d-f3365bceb881b7a5cdd47e6c102ca37454453ce9.zip external_mesa3d-f3365bceb881b7a5cdd47e6c102ca37454453ce9.tar.gz external_mesa3d-f3365bceb881b7a5cdd47e6c102ca37454453ce9.tar.bz2 |
draw: quads never provoke the first vertex
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_decompose.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_decompose.h | 40 |
1 files changed, 10 insertions, 30 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_decompose.h b/src/gallium/auxiliary/draw/draw_pt_decompose.h index 4ca5b52..3c44f7c 100644 --- a/src/gallium/auxiliary/draw/draw_pt_decompose.h +++ b/src/gallium/auxiliary/draw/draw_pt_decompose.h @@ -105,40 +105,20 @@ static void FUNC( ARGS, case PIPE_PRIM_QUADS: - if (flatfirst) { - for (i = 0; i+3 < count; i += 4) { - QUAD( (i + 1), - (i + 2), - (i + 3), - (i + 0) ); - } - } - else { - for (i = 0; i+3 < count; i += 4) { - QUAD( (i + 0), - (i + 1), - (i + 2), - (i + 3)); - } + for (i = 0; i+3 < count; i += 4) { + QUAD( (i + 0), + (i + 1), + (i + 2), + (i + 3)); } break; case PIPE_PRIM_QUAD_STRIP: - if (flatfirst) { - for (i = 0; i+3 < count; i += 2) { - QUAD( (i + 1), - (i + 3), - (i + 2), - (i + 0) ); - } - } - else { - for (i = 0; i+3 < count; i += 2) { - QUAD( (i + 2), - (i + 0), - (i + 1), - (i + 3)); - } + for (i = 0; i+3 < count; i += 2) { + QUAD( (i + 2), + (i + 0), + (i + 1), + (i + 3)); } break; |