From 28d8cad02e5e251c1505acafdc45468ae58dfe7a Mon Sep 17 00:00:00 2001 From: Henrique Coura Date: Wed, 25 Jan 2023 15:25:49 -0300 Subject: RenderForwardMobile - add dependency tracker info on geometry create --- servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'servers') diff --git a/servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp b/servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp index 25204f1abf..f951252111 100644 --- a/servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp +++ b/servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp @@ -2237,6 +2237,9 @@ RenderGeometryInstance *RenderForwardMobile::geometry_instance_create(RID p_base ginstance->data->base = p_base; ginstance->data->base_type = type; + ginstance->data->dependency_tracker.userdata = ginstance; + ginstance->data->dependency_tracker.changed_callback = _geometry_instance_dependency_changed; + ginstance->data->dependency_tracker.deleted_callback = _geometry_instance_dependency_deleted; ginstance->_mark_dirty(); -- cgit v1.2.3