ecore-evas-drm: Set the ecore_drm_device reference in the engine data
authorChris Michael <cp.michael@samsung.com>
Wed, 8 Oct 2014 15:30:36 +0000 (11:30 -0400)
committerChris Michael <cp.michael@samsung.com>
Wed, 8 Oct 2014 15:33:04 +0000 (11:33 -0400)
Summary: Since we have a field inside the engine info structure to
store a reference to the Ecore_Drm_Device, then let's set it.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/ecore_evas/engines/drm/ecore_evas_drm.c

index 12acf35..9f34798 100644 (file)
@@ -239,6 +239,7 @@ ecore_evas_drm_new_internal(const char *device, unsigned int parent EINA_UNUSED,
         einfo->info.vsync = EINA_TRUE;
         einfo->info.use_hw_accel = EINA_FALSE;
         einfo->info.fd = ecore_drm_device_fd_get(dev);
+        einfo->info.dev = dev;
 
         if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
           {
@@ -389,8 +390,10 @@ ecore_evas_gl_drm_new_internal(const char *device, unsigned int parent EINA_UNUS
         else einfo->vsync = EINA_TRUE;
 
         einfo->info.fd = ecore_drm_device_fd_get(dev);
+        einfo->info.dev = dev;
         einfo->info.format = format;
         einfo->info.flags = flags;
+
         if (einfo->info.fd) 
           einfo->info.gbm = gbm_create_device(einfo->info.fd);
         if (einfo->info.gbm)