Check for valid wl_shm before trying to create the shm pool.

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

SVN revision: 83277
This commit is contained in:
Christopher Michael 2013-01-24 09:21:01 +00:00 committed by Christopher Michael
parent fa783d8e75
commit 949d008b13
1 changed files with 3 additions and 0 deletions

View 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;