From 3fbd6150da1f69187425b673229db118187aae08 Mon Sep 17 00:00:00 2001 From: Stefano Date: Mon, 9 Sep 2024 18:51:46 +0200 Subject: [PATCH] Added also XR_ERROR_INITIALIZATION_FAILED as error to allow in case the API is not supported --- src/devices/openxrheadset/OpenXrInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/openxrheadset/OpenXrInterface.cpp b/src/devices/openxrheadset/OpenXrInterface.cpp index 86c7ce0..83d5a53 100644 --- a/src/devices/openxrheadset/OpenXrInterface.cpp +++ b/src/devices/openxrheadset/OpenXrInterface.cpp @@ -176,7 +176,7 @@ bool OpenXrInterface::prepareXrInstance() {XR_API_VERSION_1_0, "XR_API_VERSION_1_0"}}; size_t version_index = 0; - while (result == XR_ERROR_API_VERSION_UNSUPPORTED && version_index < api_versions.size()) + while ((result == XR_ERROR_API_VERSION_UNSUPPORTED || result == XR_ERROR_INITIALIZATION_FAILED) && version_index < api_versions.size()) { instanceCreateInfo.applicationInfo.apiVersion = api_versions[version_index].first; result = xrCreateInstance(&instanceCreateInfo, &(m_pimpl->instance));