oh: Fix type issues

This commit is contained in:
Ryan Pavlik 2019-03-21 15:36:26 -05:00 committed by Jakob Bornecrantz
parent afd20250ed
commit d1ec5fa66a
2 changed files with 9 additions and 3 deletions

View file

@ -326,13 +326,15 @@ oh_device_create(ohmd_context *ctx,
}
// Which blend modes does the device support.
ohd->base.blend_mode |= XRT_BLEND_MODE_OPAQUE;
ohd->base.blend_mode = XRT_BLEND_MODE_OPAQUE;
if (quirk_video_see_through) {
ohd->base.blend_mode |= XRT_BLEND_MODE_ALPHA_BLEND;
ohd->base.blend_mode = (enum xrt_blend_mode)(
ohd->base.blend_mode | XRT_BLEND_MODE_ALPHA_BLEND);
}
if (quirk_video_distortion_vive) {
ohd->base.distortion.models |= XRT_DISTORTION_MODEL_VIVE;
ohd->base.distortion.models = (enum xrt_distortion_model)(
ohd->base.distortion.models | XRT_DISTORTION_MODEL_VIVE);
ohd->base.distortion.preferred = XRT_DISTORTION_MODEL_VIVE;
// clang-format off

View file

@ -8,10 +8,14 @@
#pragma once
#include <xrt/xrt_device.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ohmd_context ohmd_context;
typedef struct ohmd_device ohmd_device;
struct oh_device
{