From d5e289607f59a03d3232dc617d5b462e96930f97 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Tue, 30 Jan 2024 00:30:59 +0100 Subject: [PATCH] Avoid enumerating sources twice --- client/xr/session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/xr/session.cpp b/client/xr/session.cpp index 13214c23..5f2451c1 100644 --- a/client/xr/session.cpp +++ b/client/xr/session.cpp @@ -198,7 +198,7 @@ std::vector xr::session::localized_sources_for_action(XrAction acti std::vector sources_name; sources_name.reserve(sources.size()); - for (XrPath path: details::enumerate(xrEnumerateBoundSourcesForAction, id, &action_info)) + for (XrPath path: sources) { XrInputSourceLocalizedNameGetInfo name_info{ .type = XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO,