glx: Remove unused __glXSetupForCommand from __glXIsDirect
This was needed when we emitted an xlib request here, but xcb knows the GLX major opcode for the connection already. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17422>
This commit is contained in:
parent
61834ae898
commit
215200d8f1
|
@ -287,17 +287,11 @@ glx_context_init(struct glx_context *gc,
|
|||
static Bool
|
||||
__glXIsDirect(Display * dpy, GLXContextID contextID, Bool *error)
|
||||
{
|
||||
CARD8 opcode;
|
||||
xcb_connection_t *c;
|
||||
xcb_generic_error_t *err;
|
||||
xcb_glx_is_direct_reply_t *reply;
|
||||
Bool is_direct;
|
||||
|
||||
opcode = __glXSetupForCommand(dpy);
|
||||
if (!opcode) {
|
||||
return False;
|
||||
}
|
||||
|
||||
c = XGetXCBConnection(dpy);
|
||||
reply = xcb_glx_is_direct_reply(c, xcb_glx_is_direct(c, contextID), &err);
|
||||
is_direct = (reply != NULL && reply->is_direct) ? True : False;
|
||||
|
|
Loading…
Reference in New Issue