Commit a1823887 authored by Adam Jackson's avatar Adam Jackson 💣

glx: Add GLX_SCREEN to the GetDrawableAttributes response

libglvnd would like to use this to map from drawable to screen, so it
can know which driver to dispatch to. Refer to the spec proposal here: Eric Anholt's avatarEric Anholt <>
Signed-off-by: Adam Jackson's avatarAdam Jackson <>
parent 47c1d6b7
......@@ -1931,7 +1931,7 @@ DoGetDrawableAttributes(__GLXclientState * cl, XID drawId)
xGLXGetDrawableAttributesReply reply;
__GLXdrawable *pGlxDraw = NULL;
DrawablePtr pDraw;
CARD32 attributes[14];
CARD32 attributes[16];
int num = 0, error;
if (!validGlxDrawable(client, drawId, GLX_DRAWABLE_ANY,
......@@ -1954,6 +1954,7 @@ DoGetDrawableAttributes(__GLXclientState * cl, XID drawId)
ATTRIB(GLX_WIDTH, pDraw->width);
ATTRIB(GLX_HEIGHT, pDraw->height);
ATTRIB(GLX_SCREEN, pDraw->pScreen->myNum);
if (pGlxDraw) {
pGlxDraw->target == GL_TEXTURE_2D ?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment