glx: Implement GLX_FBCONFIG_ID in GetDrawableAttributes
Required by GLX 1.4, section 3.3.6, "Querying Attributes". Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
0d76191bae
commit
2e20b8382c
|
@ -1892,7 +1892,7 @@ DoGetDrawableAttributes(__GLXclientState * cl, XID drawId)
|
|||
ClientPtr client = cl->client;
|
||||
xGLXGetDrawableAttributesReply reply;
|
||||
__GLXdrawable *pGlxDraw;
|
||||
CARD32 attributes[10];
|
||||
CARD32 attributes[12];
|
||||
int numAttribs = 0, error;
|
||||
|
||||
if (!validGlxDrawable(client, drawId, GLX_DRAWABLE_ANY,
|
||||
|
@ -1915,6 +1915,9 @@ DoGetDrawableAttributes(__GLXclientState * cl, XID drawId)
|
|||
attributes[8] = GLX_HEIGHT;
|
||||
attributes[9] = pGlxDraw->pDraw->height;
|
||||
numAttribs++;
|
||||
attributes[10] = GLX_FBCONFIG_ID;
|
||||
attributes[11] = pGlxDraw->config->fbconfigID;
|
||||
numAttribs++;
|
||||
|
||||
reply = (xGLXGetDrawableAttributesReply) {
|
||||
.type = X_Reply,
|
||||
|
|
Loading…
Reference in New Issue
Block a user