diff --git a/doc/changes/xrt/mr.2367.md b/doc/changes/xrt/mr.2367.md new file mode 100644 index 000000000..ca2babdc9 --- /dev/null +++ b/doc/changes/xrt/mr.2367.md @@ -0,0 +1 @@ +xrt_device_compute_distortion returns xrt_result_t to improve error handling in the state tracker diff --git a/src/xrt/include/xrt/xrt_device.h b/src/xrt/include/xrt/xrt_device.h index 5c2b19090..cb35e768a 100644 --- a/src/xrt/include/xrt/xrt_device.h +++ b/src/xrt/include/xrt/xrt_device.h @@ -883,11 +883,12 @@ xrt_device_get_view_poses(struct xrt_device *xdev, * * @public @memberof xrt_device */ -static inline bool +static inline xrt_result_t xrt_device_compute_distortion( struct xrt_device *xdev, uint32_t view, float u, float v, struct xrt_uv_triplet *out_result) { - return xdev->compute_distortion(xdev, view, u, v, out_result); + xdev->compute_distortion(xdev, view, u, v, out_result); + return XRT_SUCCESS; } /*!