Merge pull request #69483 from akien-mga/openxr-3d-only

SCons: Disable openxr module with disable_3d=yes
This commit is contained in:
Rémi Verschelde 2022-12-02 12:24:58 +01:00
commit 23c58be800
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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