summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-04-20 18:20:52 -0700
committerKeith Packard <keithp@keithp.com>2009-05-08 12:23:27 -0700
commit199bb367152d68e784dfbec79ab9b70540d83fc2 (patch)
tree7779130e723a58e18f2dfd5c989648e241b082d7
parent11db545a86c8933c638a0bc1fcd4f2c65279f617 (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> (cherry picked from commit 44227ef1b77467c76147b9bf79bdd0e6305a522a) Signed-off-by: Keith Packard <keithp@keithp.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 0a1dce49d..1409777e4 100644
--- a/hw/xfree86/dri2/dri2ext.c
+++ b/hw/xfree86/dri2/dri2ext.c
@@ -80,8 +80,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);