evas: handle new API use correctly for gl_drm backend.

This commit is contained in:
Cedric Bail 2017-08-28 11:32:13 -07:00
parent 2ac0a755e1
commit 5e935a8ca9
1 changed files with 1 additions and 5 deletions

View File

@ -1114,7 +1114,6 @@ eng_image_native_shutdown(void *engine EINA_UNUSED, Evas_Native_Surface_Type typ
static void *
eng_image_native_set(void *engine, void *image, void *native)
{
Render_Engine *re;
Outbuf *ob;
Native *n;
Evas_Native_Surface *ns;
@ -1123,10 +1122,7 @@ eng_image_native_set(void *engine, void *image, void *native)
uint32_t texid;
void *wlid, *wl_buf = NULL;
re = (Render_Engine *)engine;
if (!re) return NULL;
ob = eng_get_ob(re);
ob = gl_generic_any_output_get(engine);
if (!ob) return NULL;
ns = native;