From 7d1078823225dc9a4e99943a4c0535a3ff60f798 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Mon, 2 Mar 2020 16:01:06 -0600 Subject: [PATCH] include/xrt: Fix Vulkan-related build issue on 32-bit. --- src/xrt/include/xrt/xrt_compositor.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xrt/include/xrt/xrt_compositor.h b/src/xrt/include/xrt/xrt_compositor.h index 52af382a2..5e9d656c5 100644 --- a/src/xrt/include/xrt/xrt_compositor.h +++ b/src/xrt/include/xrt/xrt_compositor.h @@ -10,6 +10,7 @@ #pragma once #include "xrt/xrt_defines.h" +#include "xrt/xrt_compiler.h" #ifdef __cplusplus extern "C" { @@ -392,8 +393,13 @@ xrt_compositor_gl(struct xrt_compositor *xc) * */ +#ifdef XRT_64_BIT typedef struct VkImage_T *VkImage; typedef struct VkDeviceMemory_T *VkDeviceMemory; +#else +typedef uint64_t VkImage; +typedef uint64_t VkDeviceMemory; +#endif /*! * Base class for a Vulkan client swapchain.