From: Michel Dänzer Date: Fri, 9 May 2008 17:04:16 +0000 (+0100) Subject: draw: Fix number of vertices allocated in draw_pt_emit(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7462f0557f9cce73ff2d32e62ef110b5d8622f87;p=mesa.git draw: Fix number of vertices allocated in draw_pt_emit(). --- diff --git a/src/gallium/auxiliary/draw/draw_pt_emit.c b/src/gallium/auxiliary/draw/draw_pt_emit.c index e458cbe5337..ce3a153f647 100644 --- a/src/gallium/auxiliary/draw/draw_pt_emit.c +++ b/src/gallium/auxiliary/draw/draw_pt_emit.c @@ -146,7 +146,7 @@ void draw_pt_emit( struct pt_emit *emit, hw_verts = render->allocate_vertices(render, (ushort)translate->key.output_stride, - (ushort)count); + (ushort)vertex_count); if (!hw_verts) { assert(0); return;