Merge pull request #37841 from qarmin/leak_copy_shader

Fixes leak with CopyToFbShaderRD
This commit is contained in:
Rémi Verschelde 2020-04-13 12:14:16 +02:00 committed by GitHub
commit e2b01a7cc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1546,8 +1546,9 @@ RasterizerEffectsRD::~RasterizerEffectsRD() {
RD::get_singleton()->free(index_buffer); //array gets freed as dependency RD::get_singleton()->free(index_buffer); //array gets freed as dependency
RD::get_singleton()->free(filter.coefficient_buffer); RD::get_singleton()->free(filter.coefficient_buffer);
copy.shader.version_free(copy.shader_version);
bokeh.shader.version_free(bokeh.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); cube_to_dp.shader.version_free(cube_to_dp.shader_version);
cubemap_downsampler.shader.version_free(cubemap_downsampler.shader_version); cubemap_downsampler.shader.version_free(cubemap_downsampler.shader_version);
filter.shader.version_free(filter.shader_version); filter.shader.version_free(filter.shader_version);