You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Add option to use handles to RID
Adds an option to compile an alternative implementation for RIDs, which allows checks for erroneous usage patterns as well as providing leak tests.
This commit is contained in:
@@ -322,7 +322,7 @@ CanvasLayer::CanvasLayer() {
|
||||
rot = 0;
|
||||
locrotscale_dirty = false;
|
||||
layer = 1;
|
||||
canvas = VS::get_singleton()->canvas_create();
|
||||
canvas = RID_PRIME(VS::get_singleton()->canvas_create());
|
||||
custom_viewport = nullptr;
|
||||
custom_viewport_id = 0;
|
||||
sort_index = 0;
|
||||
|
||||
Reference in New Issue
Block a user