The open source OpenXR runtime

st/oxr: Only debug print actually bound bindings

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2474>

+4 -3
+4 -3
src/xrt/state_trackers/oxr/oxr_input.c
··· 1623 1623 cache->inputs = NULL; 1624 1624 } else { 1625 1625 oxr_slog(slog, "\t\tBound to:\n"); 1626 - for (uint32_t i = 0; i < input_count; i++) { 1627 - struct xrt_input *input = inputs[i].input; 1626 + for (uint32_t i = 0; i < count; i++) { 1627 + struct xrt_input *input = cache->inputs[i].input; 1628 1628 enum xrt_input_type t = XRT_GET_INPUT_TYPE(input->name); 1629 1629 bool active = input->active; 1630 1630 oxr_slog(slog, "\t\t\t'%s' ('%s') on '%s' (%s)\n", xrt_input_name_string(input->name), 1631 - xrt_input_type_to_str(t), inputs[i].xdev->str, active ? "active" : "inactive"); 1631 + xrt_input_type_to_str(t), cache->inputs[i].xdev->str, 1632 + active ? "active" : "inactive"); 1632 1633 } 1633 1634 } 1634 1635