summaryrefslogtreecommitdiff
path: root/glx
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2012-11-09 17:12:49 -0500
committerAdam Jackson <ajax@redhat.com>2013-09-11 14:37:32 -0400
commit2e20b8382cdf37ae5a2802f85b8f06a370f9645d (patch)
treef0e15be6fcd5ccfdd0e3b0b2543f67f0079fb1b3 /glx
parent0d76191baeee005982754ac18ca995742e32d8c1 (diff)
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>
Diffstat (limited to 'glx')
-rw-r--r--glx/glxcmds.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/glx/glxcmds.c b/glx/glxcmds.c
index 4a343a6ff..553b3b652 100644
--- a/glx/glxcmds.c
+++ b/glx/glxcmds.c
@@ -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,