From afb12a4c5d68dbc023a66f956a228d0b885de57c Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Fri, 17 Nov 2023 22:37:54 -0500 Subject: [PATCH] xrt: Fix graphics includes in xrt_openxr_includes --- src/xrt/include/xrt/xrt_openxr_includes.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/xrt/include/xrt/xrt_openxr_includes.h b/src/xrt/include/xrt/xrt_openxr_includes.h index e6a561e6b..5e61a0abf 100644 --- a/src/xrt/include/xrt/xrt_openxr_includes.h +++ b/src/xrt/include/xrt/xrt_openxr_includes.h @@ -37,11 +37,22 @@ typedef void (*__eglMustCastToProperFunctionPointerType)(void); // NOLINT typedef __eglMustCastToProperFunctionPointerType (*PFNEGLGETPROCADDRESSPROC)(const char *procname); #endif -#if defined(XR_USE_GRAPHICS_API_D3D11) +#if defined(XR_USE_PLATFORM_WIN32) #include "xrt_windows.h" +#endif + +#if defined(XR_USE_GRAPHICS_API_D3D11) #include #endif +#if defined(XR_USE_GRAPHICS_API_D3D12) +#include +#endif + +#if defined(XR_USE_GRAPHICS_API_VULKAN) +#include "xrt_vulkan_includes.h" +#endif + #ifdef XR_USE_TIMESPEC #include #endif