mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 11:40:15 +01:00
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:
parent
f527381eea
commit
5bc78b9f96
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue