Fix warning when compiling on Linux with WITH_XR_OPENXR enabled

This commit is contained in:
Julian Eisel 2020-08-14 17:57:24 +02:00
parent b3c08a3a0a
commit 04f703fca6
Notes: blender-bot 2023-02-14 11:21:43 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {