Skip to content

Commit

Permalink
Added guard for XR_API_VERSION_1_1
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Dafarra committed Sep 23, 2024
1 parent 53c6974 commit 8bb55b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/devices/openxrheadset/OpenXrInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ bool OpenXrInterface::prepareXrInstance()

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"},
#ifdef XR_API_VERSION_1_1
{XR_API_VERSION_1_1, "XR_API_VERSION_1_1"},
#endif // XR_API_VERSION_1_1
};
size_t version_index = 0;

Expand Down

0 comments on commit 8bb55b8

Please sign in to comment.