From 90ff6178a2350cdf7b1c1a28bf3a8c9a66da3d4b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 18 Jan 2011 12:16:58 -0700 Subject: vbo: initialize num_instances in a few places This fixes https://bugs.freedesktop.org/show_bug.cgi?id=33247 There might still be some issues with drawing multiple instances with VBO splitting to investigate someday. --- src/mesa/vbo/vbo_split_inplace.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/vbo/vbo_split_inplace.c') diff --git a/src/mesa/vbo/vbo_split_inplace.c b/src/mesa/vbo/vbo_split_inplace.c index fd5044fac05..f6aa576b6c8 100644 --- a/src/mesa/vbo/vbo_split_inplace.c +++ b/src/mesa/vbo/vbo_split_inplace.c @@ -222,6 +222,7 @@ static void split_prims( struct split_context *split) tmpprim.indexed = 1; tmpprim.start = 0; tmpprim.count = count; + tmpprim.num_instances = 1; flush_vertex(split); -- cgit v1.2.3