The open source OpenXR runtime
0
fork

Configure Feed

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

a/util: fix bug in mesh distortion gen

After the compute_distortion return type
refactor (from bool to xrt_result),
a bool check in mesh distortion gen wasn't
replaced with xrt_result check.

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

+1 -1
+1 -1
src/xrt/auxiliary/util/u_distortion_mesh.c
··· 75 75 verts[i + 0] = u * 2.0f - 1.0f; 76 76 verts[i + 1] = v * 2.0f - 1.0f; 77 77 78 - if (!calc(xdev, view, u, v, (struct xrt_uv_triplet *)&verts[i + 2])) { 78 + if (calc(xdev, view, u, v, (struct xrt_uv_triplet *)&verts[i + 2]) != XRT_SUCCESS) { 79 79 // bail on error, without updating 80 80 // distortion.preferred 81 81 return;