diff --git a/modules/openxr/SCsub b/modules/openxr/SCsub index b83ad582d7..caeec0aa5a 100644 --- a/modules/openxr/SCsub +++ b/modules/openxr/SCsub @@ -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.