vbo: init num_instances in split_prims()
authorBrian Paul <brianp@vmware.com>
Mon, 17 Jan 2011 16:56:56 +0000 (09:56 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 17 Jan 2011 16:56:58 +0000 (09:56 -0700)
Fixes a VTK regression after adding GL_ARB_draw_instanced.

src/mesa/vbo/vbo_split_inplace.c

index 789cf31364be92ca579a8ac9daf0a5bc9c21c85d..fd5044fac0590b1f4dd62b881bd0b48a66b371e5 100644 (file)
@@ -178,6 +178,7 @@ static void split_prims( struct split_context *split)
            outprim->end = (nr == remaining && prim->end);
            outprim->start = prim->start + j;
            outprim->count = nr;
+            outprim->num_instances = prim->num_instances;
 
            update_index_bounds(split, outprim);