forked from enlightenment/efl
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:
parent
5e1023f64b
commit
e3e5314950
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue