summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-04-20 18:20:52 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-04-20 20:58:56 -0700
commit44227ef1b77467c76147b9bf79bdd0e6305a522a (patch)
treea981014e09d280f4c6aeaefd0a9a1349b93a8036
parentd1e916d29be8b470cbc8cadcf6e83991fdbc5a9f (diff)
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 <ian.d.romanick@intel.com>
-rw-r--r--hw/xfree86/dri2/dri2ext.c4
1 files 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);