evas: handle new API use correctly for gl_drm backend.
authorCedric Bail <cedric@osg.samsung.com>
Mon, 28 Aug 2017 18:32:13 +0000 (11:32 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Mon, 28 Aug 2017 18:32:13 +0000 (11:32 -0700)
src/modules/evas/engines/gl_drm/evas_engine.c

index 1993a98..8f030a9 100644 (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;