Add a NULL check in native_surface_init under wayland

This commit is contained in:
Derek Foreman 2016-03-04 16:24:18 -06:00 committed by Mike Blumenkrantz
parent b3cda14e1b
commit e5e887c773
1 changed files with 1 additions and 0 deletions

View File

@ -580,6 +580,7 @@ e_pixmap_native_surface_init(E_Pixmap *cp, Evas_Native_Surface *ns)
break;
case E_PIXMAP_TYPE_WL:
#ifdef HAVE_WAYLAND
if (!cp->buffer) return EINA_FALSE;
ns->type = EVAS_NATIVE_SURFACE_WL;
ns->version = EVAS_NATIVE_SURFACE_VERSION;
ns->data.wl.legacy_buffer = cp->buffer->resource;