Only try to create an egl canvas if we have egl support.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-05-03 09:58:39 +01:00
parent 6326a99701
commit a5f21832dd
1 changed files with 3 additions and 1 deletions

View File

@ -147,13 +147,15 @@ e_canvas_new(unsigned int parent, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas
{
Ecore_Evas *ee;
#ifdef HAVE_WAYLAND_EGL
ee = ecore_evas_wayland_egl_new(NULL, parent, x, y, w, h, frame);
if (!ee)
#endif
ee = ecore_evas_wayland_shm_new(NULL, parent, x, y, w, h, frame);
if (!ee)
{
EINA_LOG_ERR("Impossible to build any Ecore_Evas window !!");
ERR("Impossible to build any Ecore_Evas window !!");
return NULL;
}