Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-02-23 02:48:34 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-02-23 02:48:34 +0400
commitfd87bf3ef66cf03286de9ac136f1eaecb1160a44 (patch)
tree340d0cf31d14a14ec6e328b0eac17fab9e2199b8 /source/blender/blenlib
parent78e1da961c0e6eeeacffefd1ab3cca3947f4b3b6 (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.c6
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;