summaryrefslogtreecommitdiff
authorIan Romanick <ian.d.romanick@intel.com>2009-04-21 01:20:52 (GMT)
committer Ian Romanick <ian.d.romanick@intel.com>2009-04-21 03:58:56 (GMT)
commit44227ef1b77467c76147b9bf79bdd0e6305a522a (patch) (side-by-side diff)
treea981014e09d280f4c6aeaefd0a9a1349b93a8036
parentd1e916d29be8b470cbc8cadcf6e83991fdbc5a9f (diff)
downloadxserver-44227ef1b77467c76147b9bf79bdd0e6305a522a.zip
xserver-44227ef1b77467c76147b9bf79bdd0e6305a522a.tar.gz
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>
Diffstat (more/less context) (ignore whitespace changes)
-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 503f827..23f3121 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);