diff --git a/scene/3d/voxelizer.cpp b/scene/3d/voxelizer.cpp index 0e20f606d69..e5f12c0618f 100644 --- a/scene/3d/voxelizer.cpp +++ b/scene/3d/voxelizer.cpp @@ -969,7 +969,7 @@ PoolVector Voxelizer::get_giprobe_level_cell_count() const { level_count.resize(cell_subdiv + 1); //remember, always x+1 levels for x subdivisions { PoolVector::Write w = level_count.write(); - for (int i = 0; i < cell_subdiv; i++) { + for (int i = 0; i < cell_subdiv + 1; i++) { w[i] = 0; } diff --git a/servers/visual/rasterizer_rd/rasterizer_scene_forward_rd.cpp b/servers/visual/rasterizer_rd/rasterizer_scene_forward_rd.cpp index 17f6bf8cdb5..279cb886606 100644 --- a/servers/visual/rasterizer_rd/rasterizer_scene_forward_rd.cpp +++ b/servers/visual/rasterizer_rd/rasterizer_scene_forward_rd.cpp @@ -2260,14 +2260,10 @@ void RasterizerSceneForwardRD::_update_render_base_uniform_set() { u.ids.resize(slot_count); } - print_line("updating slots, probe count: " + itos(slot_count)); for (int i = 0; i < slot_count; i++) { RID probe = gi_probe_get_slots()[i]; - if (probe.is_valid()) { - print_line("probe valid: " + itos(i)); - } if (gi_probe_is_anisotropic()) { if (probe.is_null()) { RID empty_tex = storage->texture_rd_get_default(RasterizerStorageRD::DEFAULT_RD_TEXTURE_3D_WHITE); diff --git a/servers/visual/rasterizer_rd/rasterizer_storage_rd.cpp b/servers/visual/rasterizer_rd/rasterizer_storage_rd.cpp index b3f186240a2..4aa9164d908 100644 --- a/servers/visual/rasterizer_rd/rasterizer_storage_rd.cpp +++ b/servers/visual/rasterizer_rd/rasterizer_storage_rd.cpp @@ -3556,8 +3556,6 @@ void RasterizerStorageRD::gi_probe_allocate(RID p_gi_probe, const Transform &p_t GIProbe *gi_probe = gi_probe_owner.getornull(p_gi_probe); ERR_FAIL_COND(!gi_probe); - bool data_version_changed = false; - if (gi_probe->octree_buffer.is_valid()) { RD::get_singleton()->free(gi_probe->octree_buffer); RD::get_singleton()->free(gi_probe->data_buffer);