浏览代码

SCons: Disable openxr module with disable_3d=yes

Fixes #69470.
Rémi Verschelde 2 年之前
父节点
当前提交
75d5dfe591
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/openxr/config.py

+ 1 - 1
modules/openxr/config.py

@@ -1,6 +1,6 @@
 def can_build(env, platform):
     if platform in ("linuxbsd", "windows", "android"):
-        return env["openxr"]
+        return env["openxr"] and not env["disable_3d"]
     else:
         # not supported on these platforms
         return False