From 53c697431c03af8f2e854a00a2fa848fd68b307b Mon Sep 17 00:00:00 2001 From: Stefano Dafarra Date: Mon, 9 Sep 2024 19:03:14 +0200 Subject: [PATCH] Using API version 1.0 as first attempt. Next attempts can result in failure --- src/devices/openxrheadset/OpenXrInterface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/devices/openxrheadset/OpenXrInterface.cpp b/src/devices/openxrheadset/OpenXrInterface.cpp index 83d5a53..c412719 100644 --- a/src/devices/openxrheadset/OpenXrInterface.cpp +++ b/src/devices/openxrheadset/OpenXrInterface.cpp @@ -171,9 +171,10 @@ bool OpenXrInterface::prepareXrInstance() XrResult result = XR_ERROR_API_VERSION_UNSUPPORTED; - std::vector> api_versions = {{XR_CURRENT_API_VERSION, "XR_CURRENT_API_VERSION"}, + std::vector> api_versions = {{XR_API_VERSION_1_0, "XR_API_VERSION_1_0"}, + {XR_CURRENT_API_VERSION, "XR_CURRENT_API_VERSION"}, {XR_API_VERSION_1_1, "XR_API_VERSION_1_1"}, - {XR_API_VERSION_1_0, "XR_API_VERSION_1_0"}}; + }; size_t version_index = 0; while ((result == XR_ERROR_API_VERSION_UNSUPPORTED || result == XR_ERROR_INITIALIZATION_FAILED) && version_index < api_versions.size())