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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/openxr/extensions/platform/openxr_opengl_extension.h b/modules/openxr/extensions/platform/openxr_opengl_extension.h
index beb68e47e3..f4a73c667b 100644
--- a/modules/openxr/extensions/platform/openxr_opengl_extension.h
+++ b/modules/openxr/extensions/platform/openxr_opengl_extension.h
@@ -68,7 +68,7 @@ private:
#ifdef X11_ENABLED
static XrGraphicsBindingOpenGLXlibKHR graphics_binding_gl;
#endif
-#ifdef EGL_ENABLED
+#if defined(EGL_ENABLED) && defined(WAYLAND_ENABLED)
static XrGraphicsBindingEGLMNDX graphics_binding_egl;
bool egl_extension_enabled = false;