Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2020-08-14 18:57:24 +0300
committerJulian Eisel <julian@blender.org>2020-08-14 18:57:24 +0300
commit04f703fca6db8a18449230e5662cfa8da8827db3 (patch)
tree0224ada4103ee934ce62468f13688d45c3d8410d
parentb3c08a3a0a9b0cd9e66bbf4bdeeedb6c2c5e7c76 (diff)
Fix warning when compiling on Linux with WITH_XR_OPENXR enabled
-rw-r--r--intern/ghost/intern/GHOST_XrContext.cpp2
1 files changed, 1 insertions, 1 deletions
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)) {