Merge pull request #105711 from dsnopek/openxr-wayland-no-opengl

OpenXR: Fix building with Wayland support and `opengl3=no`
This commit is contained in:
Thaddeus Crews 2025-04-24 17:18:48 -05:00
commit d1d4d5f39f
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC

View File

@ -27,7 +27,7 @@ elif env["platform"] == "linuxbsd":
if env["x11"]:
env_openxr.AppendUnique(CPPDEFINES=["XR_USE_PLATFORM_XLIB"])
if env["wayland"]:
if env["wayland"] and env["opengl3"]:
env_openxr.AppendUnique(CPPDEFINES=["XR_USE_PLATFORM_EGL"])
# FIXME: Review what needs to be set for Android and macOS.