diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-02-21 08:16:27 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-02-21 08:16:27 +0400 |
commit | a6dc47b0cae6bde63dfb3ec77cdae2d77a3e8b26 (patch) | |
tree | cbf92042634713ee8c958a3a4691349e63cdc879 /source/blender/blenlib | |
parent | 3c388300138bf565bfa404a3813c69ecbc289c1f (diff) |
Remove call to GPU_update_mesh_buffers from GPU_build_mesh_buffers.
Building the mesh buffers already gets the PBVH_UpdateDrawBuffers flag
set, so this was double-updating the vertex buffer.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/pbvh.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/pbvh.c b/source/blender/blenlib/intern/pbvh.c index b7175db4ca3..0e3cc51dea5 100644 --- a/source/blender/blenlib/intern/pbvh.c +++ b/source/blender/blenlib/intern/pbvh.c @@ -420,11 +420,10 @@ static void build_mesh_leaf_node(PBVH *bvh, PBVHNode *node) if(!G.background) { node->draw_buffers = - GPU_build_mesh_buffers(map, bvh->verts, bvh->faces, + GPU_build_mesh_buffers(map, bvh->faces, node->prim_indices, - node->totprim, node->vert_indices, - node->uniq_verts, - node->uniq_verts + node->face_verts); + node->totprim, + node->uniq_verts); } node->flag |= PBVH_UpdateDrawBuffers; |