evas engine: correct null check

check null first, before access it.
This commit is contained in:
Hermet Park 2016-09-21 13:16:36 +09:00
parent 545161d954
commit ff7511ae12
1 changed files with 2 additions and 1 deletions

View File

@ -1724,8 +1724,9 @@ eng_gl_surface_direct_renderable_get(void *data, Evas_Native_Surface *ns, Eina_B
Evas_Engine_GL_Context *gl_context;
Evas_GL_Image *sfc = surface;
if (!re) return EINA_FALSE;
EVGLINIT(data, EINA_FALSE);
if (!re || !ns) return EINA_FALSE;
if (!ns) return EINA_FALSE;
if (!evgl_native_surface_direct_opts_get(ns, &direct_render, &client_side_rotation, override))
return EINA_FALSE;