Merge pull request #72064 from hcoura/fix-vulkan-mobile-gpu-particles

RenderForwardMobile - add dependency tracker info on geometry create
This commit is contained in:
Rémi Verschelde 2023-01-26 01:08:58 +01:00
commit d5d127309b
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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();