forked from enlightenment/efl
evas: removing redundant check in gl_x11 backend.
Summary: Checking for NULL is redundant here, because if cfgs was NULL, then at line 760 it would fail. Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric Differential Revision: https://phab.enlightenment.org/D3238 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
96f936e6d3
commit
b9d8426eb7
|
@ -773,7 +773,7 @@ evgl_eng_pbuffer_surface_create(void *data, EVGL_Surface *sfc,
|
|||
surface_attrs[i++] = sfc->h;
|
||||
surface_attrs[i++] = 0;
|
||||
pbuf = glXCreatePbuffer(re->software.ob->disp, cfgs[0], surface_attrs);
|
||||
if (cfgs) XFree(cfgs);
|
||||
XFree(cfgs);
|
||||
|
||||
if (!pbuf)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue