mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-09 02:40:29 +01:00
glx: Fix error return code in GLXGetDrawableAttributes
This should only ever throw GLXBadDrawable, says the protocol spec.
This commit is contained in:
parent
eb6f8daca5
commit
bcb1de600a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue