summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd/cluster_builder_rd.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-11-25 20:28:50 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-11-25 20:28:50 +0100
commitc73a51fd557b4f0a34e567e4725f50380acc8474 (patch)
treeab9d3bbda27d72d28e8f3c24a2dcc46be8a7ae64 /servers/rendering/renderer_rd/cluster_builder_rd.cpp
parenta6a2e0feb9a64a624e01789b7a3fb126e9acefc0 (diff)
Remove disabled debug code in ClusterBuilderRD
Diffstat (limited to 'servers/rendering/renderer_rd/cluster_builder_rd.cpp')
-rw-r--r--servers/rendering/renderer_rd/cluster_builder_rd.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/servers/rendering/renderer_rd/cluster_builder_rd.cpp b/servers/rendering/renderer_rd/cluster_builder_rd.cpp
index b952ecbff0..4a98cf0831 100644
--- a/servers/rendering/renderer_rd/cluster_builder_rd.cpp
+++ b/servers/rendering/renderer_rd/cluster_builder_rd.cpp
@@ -460,14 +460,6 @@ void ClusterBuilderRD::bake_cluster() {
RD::get_singleton()->draw_list_set_push_constant(draw_list, &push_constant, sizeof(ClusterBuilderSharedDataRD::ClusterRender::PushConstant));
uint32_t instances = 1;
-#if 0
- for (uint32_t j = i+1; j < element_count; j++) {
- if (elements[i].type!=elements[j].type) {
- break;
- }
- instances++;
- }
-#endif
RD::get_singleton()->draw_list_draw(draw_list, true, instances);
i += instances;
}