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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user