forked from enlightenment/enlightenment
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:
parent
6326a99701
commit
a5f21832dd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue