From d1ec5fa66a8b3cb87429acc4c3b3fbc7f7566163 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Thu, 21 Mar 2019 15:36:26 -0500 Subject: [PATCH] oh: Fix type issues --- src/xrt/drivers/ohmd/oh_device.c | 8 +++++--- src/xrt/drivers/ohmd/oh_device.h | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/xrt/drivers/ohmd/oh_device.c b/src/xrt/drivers/ohmd/oh_device.c index a72cf40aa..ab0831e39 100644 --- a/src/xrt/drivers/ohmd/oh_device.c +++ b/src/xrt/drivers/ohmd/oh_device.c @@ -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 diff --git a/src/xrt/drivers/ohmd/oh_device.h b/src/xrt/drivers/ohmd/oh_device.h index 02974ffb3..59ce86019 100644 --- a/src/xrt/drivers/ohmd/oh_device.h +++ b/src/xrt/drivers/ohmd/oh_device.h @@ -8,10 +8,14 @@ #pragma once +#include + #ifdef __cplusplus extern "C" { #endif +typedef struct ohmd_context ohmd_context; +typedef struct ohmd_device ohmd_device; struct oh_device {