software_generic: fix eng_image_native_get
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 29 Jun 2017 22:12:01 +0000 (17:12 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Thu, 29 Jun 2017 22:20:23 +0000 (17:20 -0500)
This has been a stub for a long time, but now we have a native_set, so
we should have a native_get too.

This is required for hw plane usage on the software engine.

src/modules/evas/engines/software_generic/evas_engine.c

index f58fb49..85e9f40 100644 (file)
@@ -1193,9 +1193,14 @@ eng_image_native_set(void *data EINA_UNUSED, void *image, void *native)
 }
 
 static void *
-eng_image_native_get(void *data EINA_UNUSED, void *image EINA_UNUSED)
+eng_image_native_get(void *data EINA_UNUSED, void *image)
 {
-   return NULL;
+   RGBA_Image *im = image;
+   Evas_Native_Surface *n;
+
+   if (!im) return NULL;
+   n = im->native.data;
+   return n;
 }
 
 static void *