summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/glamo-dri2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glamo-dri2.c b/src/glamo-dri2.c
index 6b743f4..856eb8f 100644
--- a/src/glamo-dri2.c
+++ b/src/glamo-dri2.c
@@ -326,7 +326,11 @@ void driScreenInit(ScreenPtr pScreen)
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"[glamo-dri] Name of DRM device is '%s'\n", p);
- dri2info.version = DRI2INFOREC_VERSION;
+#if DRI2INFOREC_VERSION >= 3
+ dri2info.version = 3;
+#else
+ dri2info.version = 2;
+#endif
dri2info.fd = pGlamo->drm_fd;
dri2info.deviceName = p;
dri2info.driverName = "glamo";