Commit 8e2c7788 authored by Adam Jackson's avatar Adam Jackson 🎧
Browse files

glx: Fix error return code in GLXGetDrawableAttributes

This should only ever throw GLXBadDrawable, says the protocol spec.
parent 7e142cb2
Pipeline #306590 passed with stages
in 7 minutes and 21 seconds
......@@ -1874,7 +1874,7 @@ DoGetDrawableAttributes(__GLXclientState * cl, XID drawId)
int err = dixLookupWindow((WindowPtr *)&pDraw, drawId, client,
if (err != Success)
return error;
return __glXError(GLXBadDrawable);
if (pGlxDraw)
pDraw = pGlxDraw->pDraw;
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