mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
d/survive: Fall back to default ipd if 0 reported
This commit is contained in:
parent
057584e1fb
commit
67e61811b5
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue