From 58590a112aed1354f7592520f8f258df24c89c9b Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 21 Apr 2010 01:13:36 +0100 Subject: svga: Fix index offset --- src/gallium/drivers/svga/svga_draw_arrays.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- cgit v1.2.3