diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-18 07:46:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 07:46:23 +0100 |
commit | 8ae86f608a797d82a3546939181c830fa140e52b (patch) | |
tree | 17ce3f1c71a7c9c1e71f6d4d7ded8f3126f21428 | |
parent | 846c14eee9bad75f31df94f7072331e85d24cff5 (diff) | |
parent | ba431a9306f6f018488b6d19854ea40fa528f205 (diff) |
Merge pull request #56889 from clayjohn/VULKAN-fog-mem
Fix volumetric fog memory leak on resize
-rw-r--r-- | servers/rendering/renderer_rd/renderer_scene_render_rd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp b/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp index a499cedd2c..f6d58cb094 100644 --- a/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp +++ b/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp @@ -4011,6 +4011,9 @@ void RendererSceneRenderRD::_volumetric_fog_erase(RenderBuffers *rb) { RD::get_singleton()->free(rb->volumetric_fog->prev_light_density_map); RD::get_singleton()->free(rb->volumetric_fog->light_density_map); RD::get_singleton()->free(rb->volumetric_fog->fog_map); + RD::get_singleton()->free(rb->volumetric_fog->density_map); + RD::get_singleton()->free(rb->volumetric_fog->light_map); + RD::get_singleton()->free(rb->volumetric_fog->emissive_map); if (rb->volumetric_fog->fog_uniform_set.is_valid() && RD::get_singleton()->uniform_set_is_valid(rb->volumetric_fog->fog_uniform_set)) { RD::get_singleton()->free(rb->volumetric_fog->fog_uniform_set); |