GL/glx: WRITE_PAIR the GLX_SAMPLE_BUFFERS_SGIS, and GLX_SAMPLES_SGIS mode data.

More recent versions of glxcmds.c already do this.

This enables glxinfo to correctly detect the multisampling with output like so
from glxinfo -v:
 multiSample=6  multiSampleBuffers=1
This commit is contained in:
George Peter Staplin 2008-11-04 15:46:58 -07:00
parent f527381eea
commit 5bc78b9f96

View file

@ -1088,7 +1088,7 @@ __glXCreateARGBConfig(__GLXscreen *screen)
}
#define __GLX_TOTAL_FBCONFIG_ATTRIBS (28)
#define __GLX_TOTAL_FBCONFIG_ATTRIBS (30)
#define __GLX_FBCONFIG_ATTRIBS_LENGTH (__GLX_TOTAL_FBCONFIG_ATTRIBS * 2)
/**
* Send the set of GLXFBConfigs to the client. There is not currently
@ -1185,6 +1185,9 @@ int DoGetFBConfigs(__GLXclientState *cl, unsigned screen, GLboolean do_swap)
WRITE_PAIR( GLX_TRANSPARENT_INDEX_VALUE, modes->transparentIndex );
WRITE_PAIR( GLX_SWAP_METHOD_OML, modes->swapMethod );
WRITE_PAIR( GLX_SAMPLE_BUFFERS_SGIS, modes->sampleBuffers );
WRITE_PAIR( GLX_SAMPLES_SGIS, modes->samples );
if ( do_swap ) {
__GLX_SWAP_INT_ARRAY(buf, __GLX_FBCONFIG_ATTRIBS_LENGTH);
}