diff options
author | clayjohn <claynjohn@gmail.com> | 2020-03-23 22:55:11 -0700 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2020-03-24 10:11:00 -0700 |
commit | 61c67cd5e15046c3c902e9711e079f210666510f (patch) | |
tree | 8d0cae5f4c4d97ce006637d70afa5e40935d7460 /scene/resources | |
parent | ed9a0d0484411e631b0cc927e46dc234054d5ae5 (diff) |
Replace subpass textures with color in sky shader
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/sky_material.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/sky_material.cpp b/scene/resources/sky_material.cpp index 5d8ceacbf2..c3e51460c6 100644 --- a/scene/resources/sky_material.cpp +++ b/scene/resources/sky_material.cpp @@ -293,6 +293,8 @@ ProceduralSkyMaterial::ProceduralSkyMaterial() { } ProceduralSkyMaterial::~ProceduralSkyMaterial() { + VS::get_singleton()->free(shader); + VS::get_singleton()->material_set_shader(_get_material(), RID()); } ///////////////////////////////////////// |