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_emit.c | |
parent | 7d7f3e2c9451b2233c196d82d523c50b5d2616cc (diff) |
gallium: additional fixes to ensure even number of vertices per buffer
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_emit.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_emit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_emit.c b/src/gallium/auxiliary/draw/draw_pt_emit.c index a02f1f46fe..40f05cb9e0 100644 --- a/src/gallium/auxiliary/draw/draw_pt_emit.c +++ b/src/gallium/auxiliary/draw/draw_pt_emit.c @@ -143,6 +143,9 @@ void draw_pt_emit_prepare( struct pt_emit *emit, *max_vertices = (draw->render->max_vertex_buffer_bytes / (vinfo->size * 4)); + + /* even number */ + *max_vertices = *max_vertices & ~1; } |