Fix Vulkan crash with many Omni/SpotLights, Decals or ReflectionProbes

(cherry picked from commit d6f45e4f14)
This commit is contained in:
bitsawer 2023-08-21 12:46:15 +03:00 committed by Yuri Sizov
parent 4e539028fb
commit 3c5f715053
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ void ClusterBuilderRD::setup(Size2i p_screen_size, uint32_t p_max_elements, RID
cluster_render_buffer = RD::get_singleton()->storage_buffer_create(cluster_render_buffer_size);
cluster_buffer = RD::get_singleton()->storage_buffer_create(cluster_buffer_size);
render_elements = static_cast<RenderElementData *>(memalloc(sizeof(RenderElementData *) * render_element_max));
render_elements = static_cast<RenderElementData *>(memalloc(sizeof(RenderElementData) * render_element_max));
render_element_count = 0;
element_buffer = RD::get_singleton()->storage_buffer_create(sizeof(RenderElementData) * render_element_max);