summaryrefslogtreecommitdiffstats
path: root/modules/openxr/extensions/platform/openxr_opengl_extension.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openxr/extensions/platform/openxr_opengl_extension.h')
-rw-r--r--modules/openxr/extensions/platform/openxr_opengl_extension.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/openxr/extensions/platform/openxr_opengl_extension.h b/modules/openxr/extensions/platform/openxr_opengl_extension.h
index 8da3ca48f4..f4a73c667b 100644
--- a/modules/openxr/extensions/platform/openxr_opengl_extension.h
+++ b/modules/openxr/extensions/platform/openxr_opengl_extension.h
@@ -64,9 +64,18 @@ private:
static XrGraphicsBindingOpenGLWin32KHR graphics_binding_gl;
#elif defined(ANDROID_ENABLED)
static XrGraphicsBindingOpenGLESAndroidKHR graphics_binding_gl;
-#else // Linux/X11
+#elif defined(LINUXBSD_ENABLED)
+#ifdef X11_ENABLED
static XrGraphicsBindingOpenGLXlibKHR graphics_binding_gl;
#endif
+#if defined(EGL_ENABLED) && defined(WAYLAND_ENABLED)
+ static XrGraphicsBindingEGLMNDX graphics_binding_egl;
+
+ bool egl_extension_enabled = false;
+#endif
+#else
+#error "OpenXR with OpenGL isn't supported on this platform"
+#endif
struct SwapchainGraphicsData {
bool is_multiview;