draw: Fix vsplit regression when the ib can be used directly.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 15 May 2013 15:57:11 +0000 (16:57 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 15 May 2013 15:57:44 +0000 (16:57 +0100)
`ib` no longer is offseted by `istart`.

Trivial.

src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h

index 2d8957e91e726f8818dd8a0c416a8eed08979fc7..7f4527ac686ef3ff1e409751830270710e8ceddc 100644 (file)
@@ -59,7 +59,7 @@ CONCAT(vsplit_primitive_, ELT_TYPE)(struct vsplit_frontend *vsplit,
             debug_printf("warning: index out of range\n");
          }
       }
-      draw_elts = (const ushort *) ib;
+      draw_elts = (const ushort *) (ib + istart);
    }
    else {
       /* have to go through vsplit->draw_elts */