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>
This commit is contained in:
Ian Romanick 2009-04-20 18:20:52 -07:00
parent d1e916d29b
commit 44227ef1b7

View File

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