mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +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};
|
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;
|
eye_relation = *default_eye_relation;
|
||||||
} else {
|
} else {
|
||||||
eye_relation.x = survive->hmd.ipd;
|
eye_relation.x = survive->hmd.ipd;
|
||||||
|
|
Loading…
Reference in a new issue