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
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue