Required by GLX 1.4, section 3.3.6, "Querying Attributes".
Signed-off-by: Adam Jackson <[email protected]>
---
glx/glxcmds.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/glx/glxcmds.c b/glx/glxcmds.c
index 53c5eaa..192c73f 100644
--- a/glx/glxcmds.c
+++ b/glx/glxcmds.c
@@ -1874,7 +1874,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,
@@ -1897,6 +1897,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,
--
1.8.1.4
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel