[Bf-blender-cvs] [99560d9657b] soc-2019-openxr: Disable debug extension on Windows

Julian Eisel noreply at git.blender.org
Thu Jul 11 16:46:32 CEST 2019


Commit: 99560d9657b103e1cb61faf9e546d6c5c382b161
Author: Julian Eisel
Date:   Thu Jul 11 16:44:51 2019 +0200
Branches: soc-2019-openxr
https://developer.blender.org/rB99560d9657b103e1cb61faf9e546d6c5c382b161

Disable debug extension on Windows

Unfortunately, enabling XR_EXT_debug_utils crashes instance creation
with the Windows Mixed Reality runtime. Maybe I'm doing something wrong,
for now, just disable it.

===================================================================

M	intern/ghost/intern/GHOST_XrContext.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_XrContext.cpp b/intern/ghost/intern/GHOST_XrContext.cpp
index e4502ae1e99..2d740ca8705 100644
--- a/intern/ghost/intern/GHOST_XrContext.cpp
+++ b/intern/ghost/intern/GHOST_XrContext.cpp
@@ -326,7 +326,9 @@ void GHOST_XrContext::getExtensionsToEnable(std::vector<const char *> &r_ext_nam
   static std::vector<std::string> try_ext;
 
   /* Try enabling debug extension */
+#ifndef WIN32
   XR_DEBUG_ONLY_CALL(this, try_ext.push_back(XR_EXT_DEBUG_UTILS_EXTENSION_NAME));
+#endif
 
   r_ext_names.reserve(try_ext.size() + 1); /* + 1 for graphics binding extension. */



More information about the Bf-blender-cvs mailing list