Fix warning when compiling on Linux with WITH_XR_OPENXR enabled
This commit is contained in:
parent
3a5ef92896
commit
38ae241020
Notes:
blender-bot
2024-03-25 12:30:38 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue