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

View File

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