mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
ipc: Use new none distortion code
This commit is contained in:
parent
96046d1315
commit
813487c2f5
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue