Merge pull request #55319 from Calinou/cluster-builder-remove-debug-code

This commit is contained in:
Rémi Verschelde 2021-11-25 21:50:05 +01:00 committed by GitHub
commit 21052ce253
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}