From 5a64626ee57183a404827e2cda8359db3529b180 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 17 Jan 2011 09:56:56 -0700 Subject: [PATCH] vbo: init num_instances in split_prims() Fixes a VTK regression after adding GL_ARB_draw_instanced. --- src/mesa/vbo/vbo_split_inplace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/vbo/vbo_split_inplace.c b/src/mesa/vbo/vbo_split_inplace.c index 789cf31364b..fd5044fac05 100644 --- a/src/mesa/vbo/vbo_split_inplace.c +++ b/src/mesa/vbo/vbo_split_inplace.c @@ -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); -- 2.30.2