summaryrefslogtreecommitdiff
path: root/src/mesa/vbo
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-01-17 09:56:56 -0700
committerBrian Paul <brianp@vmware.com>2011-01-17 09:56:58 -0700
commit5a64626ee57183a404827e2cda8359db3529b180 (patch)
treef1a9b37a23d6c6e9b37c9362fe96afee01611e2c /src/mesa/vbo
parent6179f7e38e78eea6fb06180fca3c8b1e78d25f2b (diff)
vbo: init num_instances in split_prims()
Fixes a VTK regression after adding GL_ARB_draw_instanced.
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r--src/mesa/vbo/vbo_split_inplace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_split_inplace.c b/src/mesa/vbo/vbo_split_inplace.c
index 789cf31364..fd5044fac0 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);