From dc380f8915e875c5c33382cc878aa0fdb1055ed2 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Thu, 24 Apr 2025 09:17:19 -0500 Subject: [PATCH] OpenXR: Fix building with Wayland support and `opengl3=no` --- modules/openxr/SCsub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.