Skip to content

Commit

Permalink
Merge pull request #102503 from clayjohn/instance-uniform-free
Browse files Browse the repository at this point in the history
Ensure instance uniforms are freed by updating dirty items before freeing
  • Loading branch information
akien-mga committed Feb 7, 2025
2 parents 0bccb0a + b676944 commit d497631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/rendering/renderer_canvas_cull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d497631

Please sign in to comment.