From bcb1de600a7656e4ee6434a8d2e2772ca9fd0473 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 22 Apr 2021 11:47:29 -0400 Subject: [PATCH] glx: Fix error return code in GLXGetDrawableAttributes This should only ever throw GLXBadDrawable, says the protocol spec. --- glx/glxcmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glx/glxcmds.c b/glx/glxcmds.c index 8bf180378..368d66aa6 100644 --- a/glx/glxcmds.c +++ b/glx/glxcmds.c @@ -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;