diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-14 00:05:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-14 00:05:25 +0200 |
commit | 7e49c8c30e78198c10bc08f1c78700dde3ba342a (patch) | |
tree | 652f605c3c4d59985c6d0e04d57266d586ada63b /servers | |
parent | 991f78183da2356ac48e87a280f0299cdd004e35 (diff) | |
parent | 6930ad27773530eed472af17ede7f24692cd73b0 (diff) |
Merge pull request #62947 from BastiaanOlij/fix_mesh_instance_free
Diffstat (limited to 'servers')
-rw-r--r-- | servers/rendering/renderer_canvas_render.cpp | 2 | ||||
-rw-r--r-- | servers/rendering/renderer_scene_cull.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/servers/rendering/renderer_canvas_render.cpp b/servers/rendering/renderer_canvas_render.cpp index f93fdd500a..623f0c647b 100644 --- a/servers/rendering/renderer_canvas_render.cpp +++ b/servers/rendering/renderer_canvas_render.cpp @@ -131,6 +131,6 @@ const Rect2 &RendererCanvasRender::Item::get_rect() const { RendererCanvasRender::Item::CommandMesh::~CommandMesh() { if (mesh_instance.is_valid()) { - RSG::mesh_storage->mesh_free(mesh_instance); + RSG::mesh_storage->mesh_instance_free(mesh_instance); } } diff --git a/servers/rendering/renderer_scene_cull.cpp b/servers/rendering/renderer_scene_cull.cpp index aaf7ab8efd..ebb5849f85 100644 --- a/servers/rendering/renderer_scene_cull.cpp +++ b/servers/rendering/renderer_scene_cull.cpp @@ -470,7 +470,7 @@ void RendererSceneCull::_instance_update_mesh_instance(Instance *p_instance) { p_instance->mesh_instance = RSG::mesh_storage->mesh_instance_create(p_instance->base); } else { - RSG::mesh_storage->mesh_free(p_instance->mesh_instance); + RSG::mesh_storage->mesh_instance_free(p_instance->mesh_instance); p_instance->mesh_instance = RID(); } |