1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Avoid crashes when engine leaks canvas items and friends

(cherry picked from commit 34ecfff672)
This commit is contained in:
Yuri Sizov
2023-12-20 13:19:46 +01:00
parent ba23081eb7
commit 36f34c8f86
5 changed files with 33 additions and 4 deletions

View File

@@ -170,6 +170,9 @@ public:
RID_Owner<Item, true> canvas_item_owner;
RID_Owner<RendererCanvasRender::Light, true> canvas_light_owner;
template <class T>
void _free_rids(T &p_owner, const char *p_type);
bool disable_scale;
bool sdf_used = false;
bool snapping_2d_transforms_to_pixel = false;
@@ -329,6 +332,9 @@ public:
Rect2 _debug_canvas_item_get_rect(RID p_item);
bool free(RID p_rid);
void finalize();
RendererCanvasCull();
~RendererCanvasCull();
};