summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2021-10-18 14:23:10 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2021-10-18 14:24:03 +0300
commit26a26d6657a18eb4a13d3e810885a65bd5b040ef (patch)
treefccdd713bcc012eadfa4f99417ca39dc5dc25c63 /servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp
parent523e0d80a8118c933dc2fb747874526cd72e1f92 (diff)
Fix errors on quitting from an empty project
Diffstat (limited to 'servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp')
-rw-r--r--servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp b/servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp
index 5814c164cc..4a08b0fe93 100644
--- a/servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp
+++ b/servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp
@@ -576,6 +576,7 @@ void RendererSceneSkyRD::Sky::free(RendererStorageRD *p_storage) {
if (material.is_valid()) {
p_storage->free(material);
+ material = RID();
}
}