diff options
author | Brian Paul <[email protected]> | 2011-01-18 12:16:58 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-01-18 12:18:32 -0700 |
commit | 90ff6178a2350cdf7b1c1a28bf3a8c9a66da3d4b (patch) | |
tree | 6a9f64453e71b815d7d342a52bf2e2bb3a4ed06e /src | |
parent | d5a53ad271396257ee037a56cb10ba9382460705 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/vbo/vbo_split_copy.c | 1 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_split_inplace.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_split_copy.c b/src/mesa/vbo/vbo_split_copy.c index 26d0046e83d..8c981f93e5c 100644 --- a/src/mesa/vbo/vbo_split_copy.c +++ b/src/mesa/vbo/vbo_split_copy.c @@ -222,6 +222,7 @@ begin( struct copy_context *copy, GLenum mode, GLboolean begin_flag ) prim->mode = mode; prim->begin = begin_flag; + prim->num_instances = 1; } 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); |