Add some evas_common init functions if we have not previously
authorChristopher Michael <cp.michael@samsung.com>
Thu, 24 Jan 2013 09:16:06 +0000 (09:16 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Thu, 24 Jan 2013 09:16:06 +0000 (09:16 +0000)
initialized this engine before.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83237

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

index ca51601..4169555 100644 (file)
@@ -100,7 +100,19 @@ eng_setup(Evas *eo_evas, void *einfo)
    /* test for valid engine output */
    if (!(re = epd->engine.data.output))
      {
-
+        /* NB: If we have no valid output then assume we have not been 
+         * initialized yet and call any needed common init routines */
+        evas_common_cpu_init();
+        evas_common_blend_init();
+        evas_common_image_init();
+        evas_common_convert_init();
+        evas_common_scale_init();
+        evas_common_rectangle_init();
+        evas_common_polygon_init();
+        evas_common_line_init();
+        evas_common_font_init();
+        evas_common_draw_init();
+        evas_common_tilebuf_init();
      }
 
    return 0;