From 941ce110804aac776d5c49ddbb4580580f33bec4 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Tue, 11 Oct 2022 21:50:43 -0700 Subject: check for xorg version if glamor_egl_get_driver_name exists --- xrdpdev/xrdpdri2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xrdpdev/xrdpdri2.c b/xrdpdev/xrdpdri2.c index 1fc6a1b..21cc73d 100644 --- a/xrdpdev/xrdpdri2.c +++ b/xrdpdev/xrdpdri2.c @@ -183,8 +183,9 @@ rdpDri2Init(ScreenPtr pScreen) /* This ensures that dri/va (=driver[0]) and vdpau (=driver[1]) */ /* get the correct values. Currently only needed for intel drivers. */ /* Ask Glamor to obtain the DRI driver name via EGL_MESA_query_driver. */ +#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1, 20, 7, 0, 0) driver_names[0] = glamor_egl_get_driver_name(pScreen); - +#endif if (driver_names[0]) { /* There is no VDPAU driver for Intel, fallback to the generic -- cgit v1.2.3