d/ohmd,svr: Fix build

fixes d601f893da
This commit is contained in:
Christoph Haag authored and Jakob Bornecrantz committed 2023-03-13 01:32:34 +00:00
1 parent 63a180cb97
commit 9dbfdf97ce
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -703,14 +703,14 @@ u_compute_distortion_openhmd(struct openhmd_values *values, float u, float v, st
}
static bool
compute_distortion_openhmd(struct xrt_device *xdev, int view, float u, float v, struct xrt_uv_triplet *result)
compute_distortion_openhmd(struct xrt_device *xdev, uint32_t view, float u, float v, struct xrt_uv_triplet *result)
{
struct oh_device *ohd = oh_device(xdev);
return u_compute_distortion_openhmd(&ohd->distortion.openhmd[view], u, v, result);
}
static bool
compute_distortion_vive(struct xrt_device *xdev, int view, float u, float v, struct xrt_uv_triplet *result)
compute_distortion_vive(struct xrt_device *xdev, uint32_t view, float u, float v, struct xrt_uv_triplet *result)
{
struct oh_device *ohd = oh_device(xdev);
return u_compute_distortion_vive(&ohd->distortion.vive[view], u, v, result);
+1 -1
View File
@@ -127,7 +127,7 @@ svr_hmd_get_view_poses(struct xrt_device *xdev,
//!@todo: remove hard-coding and move to u_distortion_mesh
bool
svr_mesh_calc(struct xrt_device *xdev, int view, float u, float v, struct xrt_uv_triplet *result)
svr_mesh_calc(struct xrt_device *xdev, uint32_t view, float u, float v, struct xrt_uv_triplet *result)
{
struct svr_hmd *svr = svr_hmd(xdev);