The open source OpenXR runtime

st/steamvr_drv: Fix distortion computation

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

+3 -2
+3 -2
src/xrt/state_trackers/steamvr_drv/ovrd_driver.cpp
··· 1428 1428 1429 1429 struct xrt_uv_triplet d; 1430 1430 1431 - if (!m_xdev->compute_distortion(m_xdev, eEye, U, V, &d)) { 1432 - ovrd_log("Failed to compute distortion for view %d at %f,%f!\n", eEye, U, V); 1431 + xrt_result_t xret = m_xdev->compute_distortion(m_xdev, eEye, U, V, &d); 1432 + if (xret != XRT_SUCCESS) { 1433 + ovrd_log("Failed to compute distortion for view %d at %f,%f! Got error %d\n", eEye, U, V, xret); 1433 1434 1434 1435 vr::DistortionCoordinates_t coordinates; 1435 1436 coordinates.rfBlue[0] = U;