diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-02-23 02:48:34 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-02-23 02:48:34 +0400 |
commit | fd87bf3ef66cf03286de9ac136f1eaecb1160a44 (patch) | |
tree | 340d0cf31d14a14ec6e328b0eac17fab9e2199b8 /source/blender/blenlib | |
parent | 78e1da961c0e6eeeacffefd1ab3cca3947f4b3b6 (diff) |
Code cleanup: don't use GHash for GPU_build_mesh_buffers().
At the point where GPU_build_mesh_buffers is called, the
face_vert_indices map has already been built; it contains the same
data in an easier-to-access format.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/pbvh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/pbvh.c b/source/blender/blenlib/intern/pbvh.c index 7d57dd7d546..81332dfba6a 100644 --- a/source/blender/blenlib/intern/pbvh.c +++ b/source/blender/blenlib/intern/pbvh.c @@ -420,10 +420,10 @@ static void build_mesh_leaf_node(PBVH *bvh, PBVHNode *node) if(!G.background) { node->draw_buffers = - GPU_build_mesh_buffers(map, bvh->faces, + GPU_build_mesh_buffers(node->face_vert_indices, + bvh->faces, node->prim_indices, - node->totprim, - node->uniq_verts); + node->totprim); } node->flag |= PBVH_UpdateDrawBuffers; |