From: Brian Paul Date: Mon, 17 Jan 2011 16:56:56 +0000 (-0700) Subject: vbo: init num_instances in split_prims() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a64626ee57183a404827e2cda8359db3529b180;p=mesa.git vbo: init num_instances in split_prims() Fixes a VTK regression after adding GL_ARB_draw_instanced. --- 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);