Skip to content

Commit 8fe519f

Browse files
authored
Merge pull request #239 from jsorg71/glamor_egl_get_driver_name
check for xorg version if glamor_egl_get_driver_name exists
2 parents 3f7ed8d + 941ce11 commit 8fe519f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xrdpdev/xrdpdri2.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ rdpDri2Init(ScreenPtr pScreen)
183183
/* This ensures that dri/va (=driver[0]) and vdpau (=driver[1]) */
184184
/* get the correct values. Currently only needed for intel drivers. */
185185
/* Ask Glamor to obtain the DRI driver name via EGL_MESA_query_driver. */
186+
#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1, 20, 7, 0, 0)
186187
driver_names[0] = glamor_egl_get_driver_name(pScreen);
187-
188+
#endif
188189
if (driver_names[0])
189190
{
190191
/* There is no VDPAU driver for Intel, fallback to the generic

0 commit comments

Comments
 (0)