From 215200d8f1968c51896586f460edd5091d122ba7 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 23 Jun 2022 14:44:20 -0400 Subject: [PATCH] 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: --- src/glx/glxcmds.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 36003688be6..932c0bf1934 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -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;