diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-06-18 15:08:19 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-06-18 15:08:19 -0600 |
commit | f1401385587882bb9d18a5f5b01dcbb71ddf0a2f (patch) | |
tree | 521de15341358b3090369d042fd7e2c7c58a2327 /src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c | |
parent | 7d7f3e2c9451b2233c196d82d523c50b5d2616cc (diff) |
gallium: additional fixes to ensure even number of vertices per buffer
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c index 25118712a6..0aec4b71ba 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c @@ -99,6 +99,9 @@ static void fetch_pipeline_prepare( struct draw_pt_middle_end *middle, *max_vertices = DRAW_PIPE_MAX_VERTICES; } + /* return even number */ + *max_vertices = *max_vertices & ~1; + /* No need to prepare the shader. */ vs->prepare(vs, draw); |