Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/xorgxrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt335672 <30179339+matt335672@users.noreply.github.com>2022-10-13 14:01:38 +0300
committerGitHub <noreply@github.com>2022-10-13 14:01:38 +0300
commit8fe519fd2039922ffadf9e88db5f2b1b3691e64d (patch)
tree7730ee87e51ebcb5609f52e02b4be7acf0b08ffd
parent3f7ed8d14570e0a659408245a429e31205e08278 (diff)
parent941ce110804aac776d5c49ddbb4580580f33bec4 (diff)
Merge pull request #239 from jsorg71/glamor_egl_get_driver_name
check for xorg version if glamor_egl_get_driver_name exists
-rw-r--r--xrdpdev/xrdpdri2.c3
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