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

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