d/survive: Fall back to default ipd if 0 reported

This commit is contained in:
Christoph Haag 2024-01-25 13:49:36 +01:00
parent 057584e1fb
commit 67e61811b5

View file

@ -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;