Avoid enumerating sources twice

This commit is contained in:
Guillaume Meunier
2024-01-30 20:26:08 +01:00
parent 33fea3f6b6
commit d5e289607f
+1 -1
View File
@@ -198,7 +198,7 @@ std::vector<std::string> xr::session::localized_sources_for_action(XrAction acti
std::vector<std::string> sources_name;
sources_name.reserve(sources.size());
for (XrPath path: details::enumerate<XrPath>(xrEnumerateBoundSourcesForAction, id, &action_info))
for (XrPath path: sources)
{
XrInputSourceLocalizedNameGetInfo name_info{
.type = XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO,