From 0f66bc9ba6efebebfde1192ef4b6924b699bb006 Mon Sep 17 00:00:00 2001 From: bitsawer Date: Fri, 10 Nov 2023 12:07:32 +0200 Subject: [PATCH] Fix FogMaterial memory leak --- scene/register_scene_types.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp index b7c98b0ea9a..3727c788fde 100644 --- a/scene/register_scene_types.cpp +++ b/scene/register_scene_types.cpp @@ -1220,6 +1220,7 @@ void unregister_scene_types() { PhysicalSkyMaterial::cleanup_shader(); PanoramaSkyMaterial::cleanup_shader(); ProceduralSkyMaterial::cleanup_shader(); + FogMaterial::cleanup_shader(); #endif // _3D_DISABLED ParticleProcessMaterial::finish_shaders();