d/oh: Port to using new zero/identity defines

This commit is contained in:
Ryan Pavlik 2021-04-26 15:12:21 -05:00 committed by Jakob Bornecrantz
parent 71fabf50c5
commit 85ea0f8f78

View file

@ -332,8 +332,8 @@ oh_device_get_tracked_pose(struct xrt_device *xdev,
struct xrt_space_relation *out_relation) struct xrt_space_relation *out_relation)
{ {
struct oh_device *ohd = oh_device(xdev); struct oh_device *ohd = oh_device(xdev);
struct xrt_quat quat = {0.f, 0.f, 0.f, 1.f}; struct xrt_quat quat = XRT_QUAT_IDENTITY;
struct xrt_vec3 pos = {0.f, 0.f, 0.f}; struct xrt_vec3 pos = XRT_VEC3_ZERO;
// support generic head pose for all hmds, // support generic head pose for all hmds,
// support rift poses for rift controllers, and simple poses for generic controller // support rift poses for rift controllers, and simple poses for generic controller