diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-04 18:16:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-04 18:16:40 +0200 |
commit | 321ce4d4c46a998baa26e8e562775b7e28030339 (patch) | |
tree | ce237b0890738dd6058b6f1a22fafe8e490b3759 | |
parent | da887714be65290697f0b1071acde580711570bc (diff) | |
parent | 853f677c7e2ce432381a418bebda6f5284537fc2 (diff) |
Merge pull request #37584 from qarmin/leak_fixes
Fixed leak with SpecularMergeShaderRD
-rw-r--r-- | servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp b/servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp index 9abdf55dfd..2d881dbd37 100644 --- a/servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp +++ b/servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp @@ -1461,20 +1461,22 @@ RasterizerEffectsRD::~RasterizerEffectsRD() { RD::get_singleton()->free(default_mipmap_sampler); RD::get_singleton()->free(index_buffer); //array gets freed as dependency RD::get_singleton()->free(filter.coefficient_buffer); + blur.shader.version_free(blur.shader_version); - roughness.shader.version_free(roughness.shader_version); - tonemap.shader.version_free(tonemap.shader_version); - luminance_reduce.shader.version_free(luminance_reduce.shader_version); - copy.shader.version_free(copy.shader_version); bokeh.shader.version_free(bokeh.shader_version); - ssao.minify_shader.version_free(ssao.minify_shader_version); - ssao.gather_shader.version_free(ssao.gather_shader_version); - ssao.blur_shader.version_free(ssao.blur_shader_version); - roughness_limiter.shader.version_free(roughness_limiter.shader_version); + copy.shader.version_free(copy.shader_version); cubemap_downsampler.shader.version_free(cubemap_downsampler.shader_version); filter.shader.version_free(filter.shader_version); + luminance_reduce.shader.version_free(luminance_reduce.shader_version); + roughness.shader.version_free(roughness.shader_version); + roughness_limiter.shader.version_free(roughness_limiter.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); + ssao.minify_shader.version_free(ssao.minify_shader_version); ssr.shader.version_free(ssr.shader_version); - ssr_scale.shader.version_free(ssr_scale.shader_version); ssr_filter.shader.version_free(ssr_filter.shader_version); + ssr_scale.shader.version_free(ssr_scale.shader_version); sss.shader.version_free(sss.shader_version); + tonemap.shader.version_free(tonemap.shader_version); } |