Merge pull request #42744 from qarmin/fix_leaks
Fixes leaks with shader and material
This commit is contained in:
commit
3f7f4fb6f3
|
@ -7888,6 +7888,9 @@ RasterizerStorageRD::~RasterizerStorageRD() {
|
||||||
giprobe_sdf_shader.version_free(giprobe_sdf_shader_version);
|
giprobe_sdf_shader.version_free(giprobe_sdf_shader_version);
|
||||||
particles_shader.copy_shader.version_free(particles_shader.copy_shader_version);
|
particles_shader.copy_shader.version_free(particles_shader.copy_shader_version);
|
||||||
|
|
||||||
|
RenderingServer::get_singleton()->free(particles_shader.default_material);
|
||||||
|
RenderingServer::get_singleton()->free(particles_shader.default_shader);
|
||||||
|
|
||||||
RD::get_singleton()->free(default_rd_storage_buffer);
|
RD::get_singleton()->free(default_rd_storage_buffer);
|
||||||
|
|
||||||
if (decal_atlas.textures.size()) {
|
if (decal_atlas.textures.size()) {
|
||||||
|
|
Loading…
Reference in New Issue