From 62fb462165425f927a8961385219a534a500c39e Mon Sep 17 00:00:00 2001 From: clayjohn Date: Sun, 13 Oct 2019 09:31:00 -0700 Subject: [PATCH] Properly free sky and lightmap caches in multithreaded server --- servers/visual/visual_server_wrap_mt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/visual/visual_server_wrap_mt.cpp b/servers/visual/visual_server_wrap_mt.cpp index 79e4d8cbba8..1f0217c0ce7 100644 --- a/servers/visual/visual_server_wrap_mt.cpp +++ b/servers/visual/visual_server_wrap_mt.cpp @@ -137,6 +137,7 @@ void VisualServerWrapMT::finish() { } texture_free_cached_ids(); + sky_free_cached_ids(); shader_free_cached_ids(); material_free_cached_ids(); mesh_free_cached_ids(); @@ -148,6 +149,7 @@ void VisualServerWrapMT::finish() { spot_light_free_cached_ids(); reflection_probe_free_cached_ids(); gi_probe_free_cached_ids(); + lightmap_capture_free_cached_ids(); particles_free_cached_ids(); camera_free_cached_ids(); viewport_free_cached_ids();