summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-13 19:44:04 +0200
committerGitHub <noreply@github.com>2019-10-13 19:44:04 +0200
commitd0628180aef4987d24f91329e4c3378b5a037a34 (patch)
treebb68bba682f572661fa0067fb2d60d0682bbf5e0 /servers
parent3bf3a0abaabd2f7c9da78a0f847b4c9a5a6ad837 (diff)
parent62fb462165425f927a8961385219a534a500c39e (diff)
Merge pull request #32799 from clayjohn/free_pools
Properly free sky and lightmap caches in multithreaded server
Diffstat (limited to 'servers')
-rw-r--r--servers/visual/visual_server_wrap_mt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/visual/visual_server_wrap_mt.cpp b/servers/visual/visual_server_wrap_mt.cpp
index 79e4d8cbba..1f0217c0ce 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();