From 82706e4dbb4333bef55528bf8b507dede98d1bf9 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Mon, 25 Nov 2024 13:31:34 -0500 Subject: [PATCH] c/render: verify xrt_device_compute_distortion result in render_distortion Part-of: --- src/xrt/compositor/render/render_distortion.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xrt/compositor/render/render_distortion.c b/src/xrt/compositor/render/render_distortion.c index 8ac24db8e..179252f62 100644 --- a/src/xrt/compositor/render/render_distortion.c +++ b/src/xrt/compositor/render/render_distortion.c @@ -257,7 +257,10 @@ create_and_fill_in_distortion_buffer_for_view(struct vk_bundle *vk, uv.y += 0.5f; struct xrt_uv_triplet result; - xrt_device_compute_distortion(xdev, view, uv.x, uv.y, &result); + xrt_result_t xret = xrt_device_compute_distortion(xdev, view, uv.x, uv.y, &result); + if (xret != XRT_SUCCESS) { + VK_CHK_WITH_GOTO(VK_ERROR_UNKNOWN, "xrt_device_compute_distortion", err_buffers); + } r->pixels[row][col] = result.r; g->pixels[row][col] = result.g; -- 2.51.2