summaryrefslogtreecommitdiff
path: root/modules/openxr
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-02 12:24:58 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-02 12:24:58 +0100
commit23c58be800554b17858d573b3f8cbc9cbdb68dca (patch)
tree758401873dfe139c3e5cb19655db08c75e248990 /modules/openxr
parent7ef9947d0efecafdfc4817960d0777a432362436 (diff)
parent75d5dfe591fbab37198446d5c892ef442835ca5a (diff)
Merge pull request #69483 from akien-mga/openxr-3d-only
SCons: Disable openxr module with disable_3d=yes
Diffstat (limited to 'modules/openxr')
-rw-r--r--modules/openxr/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/openxr/config.py b/modules/openxr/config.py
index 279168cc59..e503f12739 100644
--- a/modules/openxr/config.py
+++ b/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