wl_drm: create ecore_evas for drm gl backend
authorkabeer khan <kabeer.khan@samsung.com>
Thu, 15 Jan 2015 18:27:52 +0000 (13:27 -0500)
committerChris Michael <cp.michael@samsung.com>
Thu, 15 Jan 2015 18:27:52 +0000 (13:27 -0500)
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1871

src/modules/wl_drm/e_mod_main.c

index 4025a7e692aa57f6f0b34ddde5fdac19ce932062..118f9eff143c59c6f04ebd1b4a1cb99b81f44f5f 100644 (file)
@@ -76,8 +76,9 @@ e_modapi_init(E_Module *m)
    if ((e_comp_gl_get()) &&
        (e_comp_config_get()->engine == E_COMP_ENGINE_GL))
      {
-        /* TOOD: create ecore_evas for new drm gl backend */
-        /* NB: If that fails, call e_comp_gl_set(EINA_FALSE) */
+        comp->ee == ecore_evas_gl_drm_new(NULL, 0, 0, 0, 1, 1);
+        if(!comp->ee)
+          e_comp_gl_set(EINA_FALSE);
      }
 
    /* fallback to framebuffer drm (non-accel) */