Try to create new tilebuffer in engine setup.
authorChristopher Michael <cp.michael@samsung.com>
Thu, 24 Jan 2013 09:16:22 +0000 (09:16 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Thu, 24 Jan 2013 09:16:22 +0000 (09:16 +0000)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83242

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

index 5334754..99c5649 100644 (file)
@@ -67,6 +67,13 @@ _output_engine_setup(int w, int h, unsigned int rotation, unsigned int depth, Ei
    if (!(re = calloc(1, sizeof(Render_Engine)))) 
      return NULL;
 
+   /* try to create a new tilebuf first */
+   if (!(re->tb = evas_common_tilebuf_new(w, h)))
+     {
+        free(re);
+        return NULL;
+     }
+
    /* return allocated render engine */
    return re;
 }