Skip to content

Commit

Permalink
Using API version 1.0 as first attempt. Next attempts can result in f…
Browse files Browse the repository at this point in the history
…ailure
  • Loading branch information
S-Dafarra committed Sep 23, 2024
1 parent 3fbd615 commit 53c6974
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/devices/openxrheadset/OpenXrInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,10 @@ bool OpenXrInterface::prepareXrInstance()

XrResult result = XR_ERROR_API_VERSION_UNSUPPORTED;

std::vector<std::pair<XrVersion, std::string>> api_versions = {{XR_CURRENT_API_VERSION, "XR_CURRENT_API_VERSION"},
std::vector<std::pair<XrVersion, std::string>> 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())
Expand Down

0 comments on commit 53c6974

Please sign in to comment.