diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-10-12 10:55:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 10:55:39 +0200 |
commit | b3b5cd021c46db7c29cac65fb1a5eb4caaf7c962 (patch) | |
tree | d8e25a996a703b5dc868c197df0261decec21b9e /servers | |
parent | bf37ab52b3ee4b14f235cfa1ea9e48c24c616bb3 (diff) | |
parent | 1d3aec4230c1de1a00de1b2e1b7500aa82e309d7 (diff) |
Merge pull request #42732 from Anutrix/free-shader
Free a SortShader and a ParticlesCopyShader
Diffstat (limited to 'servers')
-rw-r--r-- | servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp | 1 | ||||
-rw-r--r-- | servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp b/servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp index 527ed09584..71acd4ceb6 100644 --- a/servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp +++ b/servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp @@ -1758,6 +1758,7 @@ RasterizerEffectsRD::~RasterizerEffectsRD() { resolve.shader.version_free(resolve.shader_version); roughness.shader.version_free(roughness.shader_version); roughness_limiter.shader.version_free(roughness_limiter.shader_version); + sort.shader.version_free(sort.shader_version); specular_merge.shader.version_free(specular_merge.shader_version); ssao.blur_shader.version_free(ssao.blur_shader_version); ssao.gather_shader.version_free(ssao.gather_shader_version); diff --git a/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp b/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp index 6448872610..1a1490816c 100644 --- a/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp +++ b/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp @@ -7884,7 +7884,9 @@ RasterizerStorageRD::~RasterizerStorageRD() { for (int i = 0; i < DEFAULT_RD_BUFFER_MAX; i++) { RD::get_singleton()->free(mesh_default_rd_buffers[i]); } + giprobe_sdf_shader.version_free(giprobe_sdf_shader_version); + particles_shader.copy_shader.version_free(particles_shader.copy_shader_version); RD::get_singleton()->free(default_rd_storage_buffer); |