From e3e53149502522b52a3b63cb603bf17fe18d24ab Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 10 Feb 2022 09:30:55 -0500 Subject: [PATCH] ecore_buffer: Remove duplicate function calls As we already set these variables at the top of the function, there is no need to reget the xcb connection or generate the pixmap id. --- src/modules/ecore_buffer/x11_dri3/ecore_buffer_x11_dri3.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/modules/ecore_buffer/x11_dri3/ecore_buffer_x11_dri3.c b/src/modules/ecore_buffer/x11_dri3/ecore_buffer_x11_dri3.c index d3ab7031df..e255a2791f 100644 --- a/src/modules/ecore_buffer/x11_dri3/ecore_buffer_x11_dri3.c +++ b/src/modules/ecore_buffer/x11_dri3/ecore_buffer_x11_dri3.c @@ -331,11 +331,9 @@ _dri3_pixmap_from_fd(Ecore_X_Display *dpy, Ecore_X_Drawable draw, int width, int if (!dpy) return 0; - c = XGetXCBConnection(dpy); if (!c) return 0; - pixmap = xcb_generate_id(c); if (!pixmap) return 0;