diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2022-10-12 07:50:43 +0300 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2022-10-12 07:50:43 +0300 |
commit | 941ce110804aac776d5c49ddbb4580580f33bec4 (patch) | |
tree | 7730ee87e51ebcb5609f52e02b4be7acf0b08ffd | |
parent | 3f7ed8d14570e0a659408245a429e31205e08278 (diff) |
check for xorg version if glamor_egl_get_driver_name exists
-rw-r--r-- | xrdpdev/xrdpdri2.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |