From c84dbad03e4a58d5ad36f751cfe71a0ac9b27b9f Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Sun, 27 Dec 2020 23:49:32 +0100 Subject: [PATCH] u/device: Add U_DEVICE_ALLOC_NO_FLAGS Allows using U_DEVICE_ALLOCATE without flags without a cast. --- src/xrt/auxiliary/util/u_device.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xrt/auxiliary/util/u_device.h b/src/xrt/auxiliary/util/u_device.h index 27f3b1022..c6bfabd6c 100644 --- a/src/xrt/auxiliary/util/u_device.h +++ b/src/xrt/auxiliary/util/u_device.h @@ -26,6 +26,7 @@ extern const struct xrt_matrix_2x2 u_device_rotation_180; enum u_device_alloc_flags { // clang-format off + U_DEVICE_ALLOC_NO_FLAGS = 0, U_DEVICE_ALLOC_HMD = 1 << 0, U_DEVICE_ALLOC_TRACKING_NONE = 1 << 1, // clang-format on