mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Ensure instance uniforms are freed by updating dirty items before freeing.
This commit is contained in:
parent
f0f5319b0b
commit
b676944dcf
1 changed files with 1 additions and 1 deletions
|
@ -2605,8 +2605,8 @@ bool RendererCanvasCull::free(RID p_rid) {
|
|||
}
|
||||
|
||||
canvas_item_set_material(canvas_item->self, RID());
|
||||
canvas_item->instance_uniforms.free(canvas_item->self);
|
||||
update_dirty_items();
|
||||
canvas_item->instance_uniforms.free(canvas_item->self);
|
||||
|
||||
if (canvas_item->canvas_group != nullptr) {
|
||||
memdelete(canvas_item->canvas_group);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue