summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_egl/evas_engine.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-11-15 11:20:04 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-11-17 18:41:31 +0900
commitdbebf2835f616c8b0144c8b795a18ddec01e7771 (patch)
tree77aa81e3caa6ad97743ef25d0101fe63d7e0d0f7 /src/modules/evas/engines/wayland_egl/evas_engine.c
parent35cbdbb08f9b4f10a26927742c62b9cbcf91f6e3 (diff)
evas surface/buffer wl support - define missing egl ifdefs if missing
this will define EGL_WAYLAND_PLANE_WL and EGL_WAYLAND_BUFFER_WL if missing as SOME older egl public headers dont expose them and yet we still wans to compile and support the feature should the egl BINARY etc. actually support this (or be upgraded to support it after efl compilation). @fix
Diffstat (limited to 'src/modules/evas/engines/wayland_egl/evas_engine.c')
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_engine.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c
index 64bed02..7b53d26 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -1197,6 +1197,12 @@ eng_image_native_set(void *data, void *image, void *native)
1197 return NULL; 1197 return NULL;
1198 } 1198 }
1199 1199
1200#ifndef EGL_WAYLAND_PLANE_WL
1201# define EGL_WAYLAND_PLANE_WL 0x31D6
1202#endif
1203#ifndef EGL_WAYLAND_BUFFER_WL
1204# define EGL_WAYLAND_BUFFER_WL 0x31D5
1205#endif
1200 attribs[0] = EGL_WAYLAND_PLANE_WL; 1206 attribs[0] = EGL_WAYLAND_PLANE_WL;
1201 attribs[1] = 0; //if plane is 1 then 0, if plane is 2 then 1 1207 attribs[1] = 0; //if plane is 1 then 0, if plane is 2 then 1
1202 attribs[2] = EGL_NONE; 1208 attribs[2] = EGL_NONE;