diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-13 12:14:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 12:14:16 +0200 |
commit | e2b01a7cc6f6007996086af6aafeb4ba9aa50ae8 (patch) | |
tree | 5bc6cc5e83b9e3a58e2217a1042ec2af406a845c | |
parent | 1888ab594bf1b486d8d225aab2ccfc51bd46b376 (diff) | |
parent | 88c0a9e3de19d71f3673328e2fa5267e788520a7 (diff) |
Merge pull request #37841 from qarmin/leak_copy_shader
Fixes leak with CopyToFbShaderRD
-rw-r--r-- | servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp b/servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp index c34eb4cd79..3da16ccb79 100644 --- a/servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp +++ b/servers/rendering/rasterizer_rd/rasterizer_effects_rd.cpp @@ -1546,8 +1546,9 @@ RasterizerEffectsRD::~RasterizerEffectsRD() { RD::get_singleton()->free(index_buffer); //array gets freed as dependency RD::get_singleton()->free(filter.coefficient_buffer); - copy.shader.version_free(copy.shader_version); bokeh.shader.version_free(bokeh.shader_version); + copy.shader.version_free(copy.shader_version); + copy_to_fb.shader.version_free(copy_to_fb.shader_version); cube_to_dp.shader.version_free(cube_to_dp.shader_version); cubemap_downsampler.shader.version_free(cubemap_downsampler.shader_version); filter.shader.version_free(filter.shader_version); |