Only uninitialise OpenXR on destruct if it was initialised
This commit is contained in:
parent
7866c98479
commit
d2ef2715ea
|
@ -760,8 +760,9 @@ OpenXRInterface::OpenXRInterface() {
|
|||
}
|
||||
|
||||
OpenXRInterface::~OpenXRInterface() {
|
||||
// should already have been called but just in case...
|
||||
if (is_initialized()) {
|
||||
uninitialize();
|
||||
}
|
||||
|
||||
if (openxr_api) {
|
||||
openxr_api->set_xr_interface(nullptr);
|
||||
|
|
Loading…
Reference in New Issue