[Bf-blender-cvs] [b57cc27ec90] xr-controller-support: Fix build errors on some platforms
Peter Kim
noreply at git.blender.org
Wed May 26 11:13:54 CEST 2021
Commit: b57cc27ec906711d454ba26e4616a3307d37c9d2
Author: Peter Kim
Date: Wed May 26 18:13:35 2021 +0900
Branches: xr-controller-support
https://developer.blender.org/rBb57cc27ec906711d454ba26e4616a3307d37c9d2
Fix build errors on some platforms
===================================================================
M intern/ghost/intern/GHOST_XrContext.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_XrContext.cpp b/intern/ghost/intern/GHOST_XrContext.cpp
index 8df851ef826..40c25441f1c 100644
--- a/intern/ghost/intern/GHOST_XrContext.cpp
+++ b/intern/ghost/intern/GHOST_XrContext.cpp
@@ -411,9 +411,15 @@ void GHOST_XrContext::getExtensionsToEnable(
}
/* Try enabling interaction profile extensions. */
+#if XR_EXT_hp_mixed_reality_controller
try_ext.push_back(XR_EXT_HP_MIXED_REALITY_CONTROLLER_EXTENSION_NAME);
+#endif
+#if XR_HTC_vive_cosmos_controller_interaction
try_ext.push_back(XR_HTC_VIVE_COSMOS_CONTROLLER_INTERACTION_EXTENSION_NAME);
+#endif
+#if XR_HUAWEI_controller_interaction
try_ext.push_back(XR_HUAWEI_CONTROLLER_INTERACTION_EXTENSION_NAME);
+#endif
r_ext_names.reserve(try_ext.size() + graphics_binding_types.size());
More information about the Bf-blender-cvs
mailing list