svga: Fix index offset
authorJakob Bornecrantz <jakob@vmware.com>
Wed, 21 Apr 2010 00:13:36 +0000 (01:13 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 21 Apr 2010 00:14:03 +0000 (01:14 +0100)
src/gallium/drivers/svga/svga_draw_arrays.c

index 005996d05d33f0db3868baf2e2718963b24989d6..da33fae62f179269588c7faac228a06662dd858f 100644 (file)
@@ -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;