You've already forked godot
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:
committed by
Thaddeus Crews
parent
6c180272b4
commit
757dbe621f
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user