diff options
author | floppyhammer <tannhauser_chen@outlook.com> | 2021-08-12 10:53:02 +0800 |
---|---|---|
committer | floppyhammer <tannhauser_chen@outlook.com> | 2021-08-12 10:53:37 +0800 |
commit | 37230dbb1f7752e900b5231a7f9ec9da94cf7484 (patch) | |
tree | 0f34ad2c09be99a93181bd7c60ccb9dcfa4ab4b1 /servers/rendering/renderer_rd | |
parent | 7188cb60127c1f4e900f080adbc47a55645f1645 (diff) |
Fix CPUParticles2D disappearance after amount change
Diffstat (limited to 'servers/rendering/renderer_rd')
-rw-r--r-- | servers/rendering/renderer_rd/renderer_storage_rd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/renderer_storage_rd.cpp b/servers/rendering/renderer_rd/renderer_storage_rd.cpp index 5b845cbb88..1c6b2bb7c1 100644 --- a/servers/rendering/renderer_rd/renderer_storage_rd.cpp +++ b/servers/rendering/renderer_rd/renderer_storage_rd.cpp @@ -3453,6 +3453,7 @@ void RendererStorageRD::multimesh_allocate_data(RID p_multimesh, int p_instances if (multimesh->buffer.is_valid()) { RD::get_singleton()->free(multimesh->buffer); multimesh->buffer = RID(); + multimesh->uniform_set_2d = RID(); //cleared by dependency multimesh->uniform_set_3d = RID(); //cleared by dependency } |