summaryrefslogtreecommitdiff
path: root/src/atidri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/atidri.c')
-rw-r--r--src/atidri.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/atidri.c b/src/atidri.c
index c3fd976..64e52a7 100644
--- a/src/atidri.c
+++ b/src/atidri.c
@@ -1094,12 +1094,13 @@ Bool ATIDRIScreenInit( ScreenPtr pScreen )
/* Check the DRI version */
DRIQueryVersion( &major, &minor, &patch );
- if ( major != 4 || minor < 0 ) {
+ if ( major != DRIINFO_MAJOR_VERSION || minor < DRIINFO_MINOR_VERSION ) {
xf86DrvMsg( pScreen->myNum, X_ERROR,
"[dri] ATIDRIScreenInit failed because of a version mismatch.\n"
- "[dri] libDRI version is %d.%d.%d but version 4.0.x is needed.\n"
+ "[dri] libdri version is %d.%d.%d but version %d.%d.x is needed.\n"
"[dri] Disabling the DRI.\n",
- major, minor, patch );
+ major, minor, patch
+ DRIINFO_MAJOR_VERSION, DRIINFO_MINOR_VERSION );
return FALSE;
}