From 44227ef1b77467c76147b9bf79bdd0e6305a522a Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 20 Apr 2009 18:20:52 -0700 Subject: [PATCH] DRI2: Send the version the code actually supports This prevents building an older server with a new dri2proto.h from resulting in a DRI2 extension module that lies about the version it supports. Signed-off-by: Ian Romanick --- hw/xfree86/dri2/dri2ext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/dri2/dri2ext.c b/hw/xfree86/dri2/dri2ext.c index 503f82716..23f312149 100644 --- a/hw/xfree86/dri2/dri2ext.c +++ b/hw/xfree86/dri2/dri2ext.c @@ -79,8 +79,8 @@ ProcDRI2QueryVersion(ClientPtr client) rep.type = X_Reply; rep.length = 0; rep.sequenceNumber = client->sequence; - rep.majorVersion = DRI2_MAJOR; - rep.minorVersion = DRI2_MINOR; + rep.majorVersion = 1; + rep.minorVersion = 0; if (client->swapped) { swaps(&rep.sequenceNumber, n);