summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorHenrique Coura <coura.henrique@gmail.com>2023-01-25 15:25:49 -0300
committerHenrique Coura <coura.henrique@gmail.com>2023-01-25 15:25:49 -0300
commit28d8cad02e5e251c1505acafdc45468ae58dfe7a (patch)
tree116322197b5958c28551589fe4929f89ad5f114f /servers
parent6369196b9698c92854bb4dba458ad0b099965d8f (diff)
RenderForwardMobile - add dependency tracker info on geometry create
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp3
1 files changed, 3 insertions, 0 deletions
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();