summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrivardhan Hebbar <sri.hebbar@samsung.com>2015-10-30 06:53:36 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-10-31 02:12:06 +0100
commitb9d8426eb7e6067b9c19cb823ec91f0513dc82eb (patch)
tree9bc604264e7312720454d2ece301a467e57dd1a0
parent96f936e6d371421809b2f8804b029f966e2b14d7 (diff)
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>
-rw-r--r--src/modules/evas/engines/gl_x11/evas_engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_x11/evas_engine.c b/src/modules/evas/engines/gl_x11/evas_engine.c
index 930092dc4e..59195e8e58 100644
--- a/src/modules/evas/engines/gl_x11/evas_engine.c
+++ b/src/modules/evas/engines/gl_x11/evas_engine.c
@@ -773,7 +773,7 @@ evgl_eng_pbuffer_surface_create(void *data, EVGL_Surface *sfc,
773 surface_attrs[i++] = sfc->h; 773 surface_attrs[i++] = sfc->h;
774 surface_attrs[i++] = 0; 774 surface_attrs[i++] = 0;
775 pbuf = glXCreatePbuffer(re->software.ob->disp, cfgs[0], surface_attrs); 775 pbuf = glXCreatePbuffer(re->software.ob->disp, cfgs[0], surface_attrs);
776 if (cfgs) XFree(cfgs); 776 XFree(cfgs);
777 777
778 if (!pbuf) 778 if (!pbuf)
779 { 779 {