The open source OpenXR runtime

xrt: xrt_device_compute_distortion return xrt_result_t

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2367>

authored by

Simon Zeni and committed by
Korcan Hussein
07694745 3af3ae37

+4 -2
+1
doc/changes/xrt/mr.2367.md
··· 1 + xrt_device_compute_distortion returns xrt_result_t to improve error handling in the state tracker
+3 -2
src/xrt/include/xrt/xrt_device.h
··· 883 883 * 884 884 * @public @memberof xrt_device 885 885 */ 886 - static inline bool 886 + static inline xrt_result_t 887 887 xrt_device_compute_distortion( 888 888 struct xrt_device *xdev, uint32_t view, float u, float v, struct xrt_uv_triplet *out_result) 889 889 { 890 - return xdev->compute_distortion(xdev, view, u, v, out_result); 890 + xdev->compute_distortion(xdev, view, u, v, out_result); 891 + return XRT_SUCCESS; 891 892 } 892 893 893 894 /*!