Check for valid wl_shm before trying to create the shm pool.
authorChristopher Michael <cp.michael@samsung.com>
Thu, 24 Jan 2013 09:21:01 +0000 (09:21 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Thu, 24 Jan 2013 09:21:01 +0000 (09:21 +0000)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83277

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

index 706bd50..70ffb01 100644 (file)
@@ -167,6 +167,9 @@ _evas_swapper_buffer_new(Wl_Swapper *ws, Wl_Buffer *wb)
    int fd = 0;
    size_t size;
 
+   /* make sure swapper has a shm */
+   if (!ws->shm) return;
+
    wb->w = ws->w;
    wb->h = ws->h;