The open source OpenXR runtime

c/render: verify xrt_device_compute_distortion result in render_distortion

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

authored by

Simon Zeni and committed by
Korcan Hussein
82706e4d 02fae7c2

+4 -1
+4 -1
src/xrt/compositor/render/render_distortion.c
··· 257 257 uv.y += 0.5f; 258 258 259 259 struct xrt_uv_triplet result; 260 - xrt_device_compute_distortion(xdev, view, uv.x, uv.y, &result); 260 + xrt_result_t xret = xrt_device_compute_distortion(xdev, view, uv.x, uv.y, &result); 261 + if (xret != XRT_SUCCESS) { 262 + VK_CHK_WITH_GOTO(VK_ERROR_UNKNOWN, "xrt_device_compute_distortion", err_buffers); 263 + } 261 264 262 265 r->pixels[row][col] = result.r; 263 266 g->pixels[row][col] = result.g;