From 67e61811b5face516e4039f5754c443baad57788 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Thu, 25 Jan 2024 13:49:36 +0100 Subject: [PATCH] d/survive: Fall back to default ipd if 0 reported --- src/xrt/drivers/survive/survive_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/drivers/survive/survive_driver.c b/src/xrt/drivers/survive/survive_driver.c index 1d51413d4..0136b5a89 100644 --- a/src/xrt/drivers/survive/survive_driver.c +++ b/src/xrt/drivers/survive/survive_driver.c @@ -529,7 +529,7 @@ survive_device_get_view_poses(struct xrt_device *xdev, struct xrt_vec3 eye_relation = {0}; - if (survive->hmd.use_default_ipd) { + if (survive->hmd.use_default_ipd || survive->hmd.ipd == 0.f) { eye_relation = *default_eye_relation; } else { eye_relation.x = survive->hmd.ipd;