diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2021-10-18 14:23:10 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2021-10-18 14:24:03 +0300 |
commit | 26a26d6657a18eb4a13d3e810885a65bd5b040ef (patch) | |
tree | fccdd713bcc012eadfa4f99417ca39dc5dc25c63 /servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp | |
parent | 523e0d80a8118c933dc2fb747874526cd72e1f92 (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.cpp | 1 |
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(); } } |