Merge pull request #42732 from Anutrix/free-shader

Free a SortShader and a ParticlesCopyShader
This commit is contained in:
Rémi Verschelde 2020-10-12 10:55:39 +02:00 committed by GitHub
commit b3b5cd021c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -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);

View File

@ -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);