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.
This commit is contained in:
Christopher Michael 2022-02-10 09:30:55 -05:00
parent 5e1023f64b
commit e3e5314950
1 changed files with 0 additions and 2 deletions

View File

@ -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;