mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
d/survive: Add comment and assert to get_view_pose (NFC)
This commit is contained in:
parent
a6b908f3ce
commit
385af79e82
|
@ -447,8 +447,13 @@ survive_device_get_view_pose(struct xrt_device *xdev,
|
|||
uint32_t view_index,
|
||||
struct xrt_pose *out_pose)
|
||||
{
|
||||
struct survive_device *survive = (struct survive_device *)xdev;
|
||||
// Only supports two views.
|
||||
assert(view_index < 2);
|
||||
|
||||
u_device_get_view_pose(eye_relation, view_index, out_pose);
|
||||
|
||||
// This is for the Index' canted displays, on the Vive [Pro] they are identity.
|
||||
struct survive_device *survive = (struct survive_device *)xdev;
|
||||
out_pose->orientation = survive->hmd.config.display.rot[view_index];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue