Skip to content

Commit

Permalink
Added also XR_ERROR_INITIALIZATION_FAILED as error to allow in case t…
Browse files Browse the repository at this point in the history
…he API is not supported
  • Loading branch information
S-Dafarra committed Sep 23, 2024
1 parent 296fbe4 commit 3fbd615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/openxrheadset/OpenXrInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 3fbd615

Please sign in to comment.