summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermet@hermet.pe.kr>2016-09-21 13:16:36 +0900
committerHermet Park <hermet@hermet.pe.kr>2016-09-21 13:16:36 +0900
commitff7511ae123bbaaefcd716edc2aabf57a9139da8 (patch)
treec3828940614df11142a98e433e1b70a054638f35
parent545161d9546d1a80ca5ffd31cbc3b4d0cae335f8 (diff)
evas engine: correct null check
check null first, before access it.
-rw-r--r--src/modules/evas/engines/gl_generic/evas_engine.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c b/src/modules/evas/engines/gl_generic/evas_engine.c
index 5d0d4653fe..5c5417fd0a 100644
--- a/src/modules/evas/engines/gl_generic/evas_engine.c
+++ b/src/modules/evas/engines/gl_generic/evas_engine.c
@@ -1724,8 +1724,9 @@ eng_gl_surface_direct_renderable_get(void *data, Evas_Native_Surface *ns, Eina_B
1724 Evas_Engine_GL_Context *gl_context; 1724 Evas_Engine_GL_Context *gl_context;
1725 Evas_GL_Image *sfc = surface; 1725 Evas_GL_Image *sfc = surface;
1726 1726
1727 if (!re) return EINA_FALSE;
1727 EVGLINIT(data, EINA_FALSE); 1728 EVGLINIT(data, EINA_FALSE);
1728 if (!re || !ns) return EINA_FALSE; 1729 if (!ns) return EINA_FALSE;
1729 if (!evgl_native_surface_direct_opts_get(ns, &direct_render, &client_side_rotation, override)) 1730 if (!evgl_native_surface_direct_opts_get(ns, &direct_render, &client_side_rotation, override))
1730 return EINA_FALSE; 1731 return EINA_FALSE;
1731 1732