[Bf-blender-cvs] [77e4905b171] blender-v2.90-release: Fix --debug-xr not outputting OpenXR debug prints on Windows

Julian Eisel noreply at git.blender.org
Fri Aug 14 17:11:31 CEST 2020


Commit: 77e4905b171a57bfe6e4e92864747534cdba9f53
Author: Julian Eisel
Date:   Fri Aug 14 16:10:45 2020 +0200
Branches: blender-v2.90-release
https://developer.blender.org/rB77e4905b171a57bfe6e4e92864747534cdba9f53

Fix --debug-xr not outputting OpenXR debug prints on Windows

The OpenXR debug extension was disabled on Windows as a workaround. This
was an old leftover from when there was only the Windows Mixed Reality
runtime on Windows. The debug extension didn't work for it and we didn't
have a way to disable it just for Windows Mixed Reality.
Now it seems to work though, so we remove the workaround. If specific
runtimes still have trouble with the extension, we can disable it
specifically for these runtimes now.

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

M	intern/ghost/intern/GHOST_XrContext.cpp

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

diff --git a/intern/ghost/intern/GHOST_XrContext.cpp b/intern/ghost/intern/GHOST_XrContext.cpp
index 6933103a2d6..0d8d42a72f7 100644
--- a/intern/ghost/intern/GHOST_XrContext.cpp
+++ b/intern/ghost/intern/GHOST_XrContext.cpp
@@ -408,11 +408,9 @@ void GHOST_XrContext::getExtensionsToEnable(
   std::vector<std::string> try_ext;
 
   /* Try enabling debug extension. */
-#ifndef WIN32
   if (isDebugMode()) {
     try_ext.push_back(XR_EXT_DEBUG_UTILS_EXTENSION_NAME);
   }
-#endif
 
   r_ext_names.reserve(try_ext.size() + graphics_binding_types.size());



More information about the Bf-blender-cvs mailing list