1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-05 17:15:09 +00:00

Remove static lifetime object to avoid late destruction

(cherry picked from commit cd198f7517)
This commit is contained in:
Bryce Hutchings
2025-09-24 11:24:49 -07:00
committed by Thaddeus Crews
parent 6c180272b4
commit 757dbe621f
2 changed files with 11 additions and 6 deletions

View File

@@ -56,6 +56,8 @@ class OpenXRExtensionWrapper : public Object {
protected:
static void _bind_methods();
Ref<OpenXRAPIExtension> openxr_api_extension;
public:
// `get_requested_extensions` should return a list of OpenXR extensions related to this extension.
// If the bool * is a nullptr this extension is mandatory
@@ -180,8 +182,8 @@ public:
GDVIRTUAL1R(bool, _on_event_polled, GDExtensionConstPtr<void>);
OpenXRExtensionWrapper() = default;
virtual ~OpenXRExtensionWrapper() = default;
OpenXRExtensionWrapper();
virtual ~OpenXRExtensionWrapper() override;
};
// `OpenXRGraphicsExtensionWrapper` implements specific logic for each supported graphics API.