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 44227ef1b7)

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Ian Romanick 2009-04-20 18:20:52 -07:00 committed by Keith Packard
parent 11db545a86
commit 199bb36715

View file

@ -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);