From: Jakob Bornecrantz Date: Wed, 21 Apr 2010 00:13:36 +0000 (+0100) Subject: svga: Fix index offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58590a112aed1354f7592520f8f258df24c89c9b;p=mesa.git svga: Fix index offset --- diff --git a/src/gallium/drivers/svga/svga_draw_arrays.c b/src/gallium/drivers/svga/svga_draw_arrays.c index 005996d05d3..da33fae62f1 100644 --- a/src/gallium/drivers/svga/svga_draw_arrays.c +++ b/src/gallium/drivers/svga/svga_draw_arrays.c @@ -277,12 +277,13 @@ svga_hwtnl_draw_arrays( struct svga_hwtnl *hwtnl, ret = svga_hwtnl_simple_draw_range_elements( hwtnl, gen_buf, gen_size, + start, 0, count - 1, gen_prim, 0, - gen_nr, - start ); + gen_nr ); + if (ret) goto done;