mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 04:33:29 +00:00
Merge pull request #59001 from BastiaanOlij/only_uninitialise_openxr_if_initialised
Only uninitialise OpenXR on destruct if it was initialized
This commit is contained in:
commit
259114e9e0
@ -760,8 +760,9 @@ OpenXRInterface::OpenXRInterface() {
|
||||
}
|
||||
|
||||
OpenXRInterface::~OpenXRInterface() {
|
||||
// should already have been called but just in case...
|
||||
uninitialize();
|
||||
if (is_initialized()) {
|
||||
uninitialize();
|
||||
}
|
||||
|
||||
if (openxr_api) {
|
||||
openxr_api->set_xr_interface(nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user