The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/survive: Add comment and assert to get_view_pose (NFC)

+6 -1
+6 -1
src/xrt/drivers/survive/survive_driver.c
··· 447 447 uint32_t view_index, 448 448 struct xrt_pose *out_pose) 449 449 { 450 + // Only supports two views. 451 + assert(view_index < 2); 452 + 453 + u_device_get_view_pose(eye_relation, view_index, out_pose); 454 + 455 + // This is for the Index' canted displays, on the Vive [Pro] they are identity. 450 456 struct survive_device *survive = (struct survive_device *)xdev; 451 - u_device_get_view_pose(eye_relation, view_index, out_pose); 452 457 out_pose->orientation = survive->hmd.config.display.rot[view_index]; 453 458 } 454 459