[Bf-blender-cvs] [38ae2410200] blender-v2.83-release: Fix warning when compiling on Linux with WITH_XR_OPENXR enabled
Julian Eisel
noreply at git.blender.org
Wed Aug 26 11:57:22 CEST 2020
Commit: 38ae24102003654b1e7073dd77c4ef38e0ff8b67
Author: Julian Eisel
Date: Fri Aug 14 17:57:24 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB38ae24102003654b1e7073dd77c4ef38e0ff8b67
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 a33c7bc6a30..4136255fd9e 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