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:
authorJoseph Eagar <joeedh@gmail.com>2022-06-13 12:45:50 +0300
committerJoseph Eagar <joeedh@gmail.com>2022-06-13 12:46:35 +0300
commit434133a63196043435c44f7c6b60663f437b37cc (patch)
tree3588dd5e429ca260ec81a81318da4799588cd66e /source/blender/blenkernel/intern/pbvh.c
parent9634f7fae35a88d295d47a4d89c87400cb67d5c6 (diff)
Cleanup: Remove unused variable and parameter in pbvh_update_draw_buffers
Diffstat (limited to 'source/blender/blenkernel/intern/pbvh.c')
-rw-r--r--source/blender/blenkernel/intern/pbvh.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/pbvh.c b/source/blender/blenkernel/intern/pbvh.c
index f36d9cac1b2..fab973d223f 100644
--- a/source/blender/blenkernel/intern/pbvh.c
+++ b/source/blender/blenkernel/intern/pbvh.c
@@ -1432,11 +1432,9 @@ static void pbvh_check_draw_layout(PBVH *pbvh, bool full_render)
}
}
-static void pbvh_update_draw_buffers(
- PBVH *pbvh, PBVHNode **nodes, int totnode, int update_flag, bool full_render)
+static void pbvh_update_draw_buffers(PBVH *pbvh, PBVHNode **nodes, int totnode, int update_flag)
{
const CustomData *vdata;
- const CustomData *ldata;
if (!pbvh->vbo_id) {
pbvh->vbo_id = GPU_pbvh_make_format();
@@ -1450,14 +1448,12 @@ static void pbvh_update_draw_buffers(
}
vdata = &pbvh->bm->vdata;
- ldata = &pbvh->bm->ldata;
break;
case PBVH_FACES:
vdata = pbvh->vdata;
- ldata = pbvh->ldata;
break;
case PBVH_GRIDS:
- ldata = vdata = NULL;
+ vdata = NULL;
break;
}
@@ -2891,7 +2887,7 @@ void BKE_pbvh_draw_cb(PBVH *pbvh,
/* Update draw buffers. */
if (totnode != 0 && (update_flag & (PBVH_RebuildDrawBuffers | PBVH_UpdateDrawBuffers))) {
- pbvh_update_draw_buffers(pbvh, nodes, totnode, update_flag, full_render);
+ pbvh_update_draw_buffers(pbvh, nodes, totnode, update_flag);
}
MEM_SAFE_FREE(nodes);