diff --git a/src/xrt/ipc/ipc_client_hmd.c b/src/xrt/ipc/ipc_client_hmd.c index f29d4ea49..8d4080ccf 100644 --- a/src/xrt/ipc/ipc_client_hmd.c +++ b/src/xrt/ipc/ipc_client_hmd.c @@ -24,6 +24,7 @@ #include "util/u_misc.h" #include "util/u_debug.h" #include "util/u_device.h" +#include "util/u_distortion_mesh.h" #include "ipc_client.h" #include "ipc_client_generated.h" @@ -177,8 +178,6 @@ ipc_client_hmd_create(struct ipc_connection *ipc_c, // clang-foramt off ich->base.hmd->blend_mode = XRT_BLEND_MODE_OPAQUE; - ich->base.hmd->distortion.models = XRT_DISTORTION_MODEL_NONE; - ich->base.hmd->distortion.preferred = XRT_DISTORTION_MODEL_NONE; ich->base.hmd->views[0].display.w_pixels = ipc_c->ism->hmd.views[0].display.w_pixels; ich->base.hmd->views[0].display.h_pixels = @@ -191,6 +190,9 @@ ipc_client_hmd_create(struct ipc_connection *ipc_c, ich->base.hmd->views[1].fov = ipc_c->ism->hmd.views[1].fov; // clang-foramt on + // Distortion information, fills in xdev->compute_distortion(). + u_distortion_mesh_set_none(&ich->base); + // Setup variable tracker. u_var_add_root(ich, ich->base.str, true); u_var_add_ro_u32(ich, &ich->device_id, "device_id");