diff options
author | Bastiaan Olij <mux213@gmail.com> | 2022-07-12 22:25:10 +1000 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2022-07-12 22:30:08 +1000 |
commit | 6930ad27773530eed472af17ede7f24692cd73b0 (patch) | |
tree | 11ca1c83a26ab456eb68ba8823080aec17b619e6 /servers | |
parent | 9b3972ad48393559f772151646304e28f938a6fa (diff) |
Fix typo, call mesh_instance_free not mesh_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(); } |