From 0ddf3e0e190c86cd58f1a2569595d22c56d6a6b2 Mon Sep 17 00:00:00 2001 From: Moses Turner <moses@collabora.com> Date: Fri, 16 Sep 2022 17:24:03 -0500 Subject: [PATCH] t/c/builder_lighthouse: Set camera orientation correctly --- src/xrt/targets/common/target_builder_lighthouse.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/xrt/targets/common/target_builder_lighthouse.c b/src/xrt/targets/common/target_builder_lighthouse.c index 07fe3f69f..6043e05f3 100644 --- a/src/xrt/targets/common/target_builder_lighthouse.c +++ b/src/xrt/targets/common/target_builder_lighthouse.c @@ -188,7 +188,12 @@ valve_index_hand_track(struct lighthouse_system *lhs, LH_ASSERT_(stereo_calib != NULL); - struct t_camera_extra_info info; + // zero-initialized out of paranoia + struct t_camera_extra_info info = {0}; + + info.views[0].camera_orientation = CAMERA_ORIENTATION_0; + info.views[1].camera_orientation = CAMERA_ORIENTATION_0; + info.views[0].boundary_type = HT_IMAGE_BOUNDARY_CIRCLE; info.views[1].boundary_type = HT_IMAGE_BOUNDARY_CIRCLE;