Commit be712c70 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz Committed by Jakob Bornecrantz

d/ohmd: Use mesh shader for none distortion

parent ef6931b7
......@@ -24,6 +24,7 @@
#include "util/u_debug.h"
#include "util/u_device.h"
#include "util/u_time.h"
#include "util/u_distortion_mesh.h"
#include "oh_device.h"
......@@ -47,7 +48,7 @@ oh_device_destroy(struct xrt_device *xdev)
ohd->dev = NULL;
}
free(ohd);
u_device_free(&ohd->base);
}
static void
......@@ -557,5 +558,10 @@ oh_device_create(ohmd_context *ctx,
u_var_add_root(ohd, "OpenHMD Wrapper", true);
u_var_add_ro_text(ohd, ohd->base.str, "Card");
if (ohd->base.hmd->distortion.preferred == XRT_DISTORTION_MODEL_NONE) {
// Setup the distortion mesh.
u_distortion_mesh_none(ohd->base.hmd);
}
return ohd;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment