[Bf-blender-cvs] [04f703fca6d] blender-v2.90-release: Fix warning when compiling on Linux with WITH_XR_OPENXR enabled

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


Commit: 04f703fca6db8a18449230e5662cfa8da8827db3
Author: Julian Eisel
Date:   Fri Aug 14 17:57:24 2020 +0200
Branches: blender-v2.90-release
https://developer.blender.org/rB04f703fca6db8a18449230e5662cfa8da8827db3

Fix warning when compiling on Linux with WITH_XR_OPENXR enabled

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

M	intern/ghost/intern/GHOST_XrContext.cpp

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

diff --git a/intern/ghost/intern/GHOST_XrContext.cpp b/intern/ghost/intern/GHOST_XrContext.cpp
index 3dbf539f0c7..6bbb6ea1bcc 100644
--- a/intern/ghost/intern/GHOST_XrContext.cpp
+++ b/intern/ghost/intern/GHOST_XrContext.cpp
@@ -462,7 +462,7 @@ GHOST_TXrGraphicsBinding GHOST_XrContext::determineGraphicsBindingTypeToUse(
 {
   /* Return the first working type. */
   for (GHOST_TXrGraphicsBinding type : enabled_types) {
-#if WIN32
+#ifdef WIN32
     /* The SteamVR OpenGL backend fails currently. Disable it and allow falling back to the DirectX
      * one. */
     if ((m_runtime_id == OPENXR_RUNTIME_STEAMVR) && (type == GHOST_kXrGraphicsOpenGL)) {



More information about the Bf-blender-cvs mailing list