From f187e84fe37367c4e262f782227e95affe980b69 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Fri, 28 Jun 2024 09:18:59 -0400 Subject: [PATCH] Cleanup: Sculpt: Remove unused variables from PBVH draw data --- source/blender/draw/intern/draw_pbvh.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/blender/draw/intern/draw_pbvh.cc b/source/blender/draw/intern/draw_pbvh.cc index c1d4ea77095..991a77dc5ef 100644 --- a/source/blender/draw/intern/draw_pbvh.cc +++ b/source/blender/draw/intern/draw_pbvh.cc @@ -346,7 +346,6 @@ struct PBVHBatches { gpu::IndexBuf *tri_index_coarse = nullptr; gpu::IndexBuf *lines_index_coarse = nullptr; int coarse_level = 0; /* Coarse multires depth. */ - int tris_count_coarse = 0, lines_count_coarse = 0; PBVHBatches(const PBVH_GPU_Args &args); ~PBVHBatches(); @@ -1461,8 +1460,6 @@ static void create_index_grids(const PBVH_GPU_Args &args, if (do_coarse) { batches.tri_index_coarse = GPU_indexbuf_build(&elb); batches.lines_index_coarse = GPU_indexbuf_build(&elb_lines); - batches.tris_count_coarse = visible_quad_len; - batches.lines_count_coarse = totgrid * display_gridsize * (display_gridsize - 1); } else { batches.tri_index = GPU_indexbuf_build(&elb);