glx: Fix error return code in GLXGetDrawableAttributes

This should only ever throw GLXBadDrawable, says the protocol spec.
This commit is contained in:
Adam Jackson 2021-04-22 11:47:29 -04:00 committed by Povilas Kanapickas
parent eb6f8daca5
commit bcb1de600a
1 changed files with 1 additions and 1 deletions

View File

@ -1873,7 +1873,7 @@ DoGetDrawableAttributes(__GLXclientState * cl, XID drawId)
int err = dixLookupWindow((WindowPtr *)&pDraw, drawId, client,
DixGetAttrAccess);
if (err != Success)
return error;
return __glXError(GLXBadDrawable);
}
if (pGlxDraw)
pDraw = pGlxDraw->pDraw;