forked from enlightenment/efl
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
This commit is contained in:
parent
35cbdbb08f
commit
dbebf2835f
|
@ -1100,6 +1100,12 @@ eng_image_native_set(void *data, void *image, void *native)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef EGL_WAYLAND_PLANE_WL
|
||||
# define EGL_WAYLAND_PLANE_WL 0x31D6
|
||||
#endif
|
||||
#ifndef EGL_WAYLAND_BUFFER_WL
|
||||
# define EGL_WAYLAND_BUFFER_WL 0x31D5
|
||||
#endif
|
||||
attribs[0] = EGL_WAYLAND_PLANE_WL;
|
||||
attribs[1] = 0; //if plane is 1 then 0, if plane is 2 then 1
|
||||
attribs[2] = EGL_NONE;
|
||||
|
|
|
@ -1322,6 +1322,12 @@ eng_image_native_set(void *data, void *image, void *native)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef EGL_WAYLAND_PLANE_WL
|
||||
# define EGL_WAYLAND_PLANE_WL 0x31D6
|
||||
#endif
|
||||
#ifndef EGL_WAYLAND_BUFFER_WL
|
||||
# define EGL_WAYLAND_BUFFER_WL 0x31D5
|
||||
#endif
|
||||
attribs[0] = EGL_WAYLAND_PLANE_WL;
|
||||
attribs[1] = 0; //if plane is 1 then 0, if plane is 2 then 1
|
||||
attribs[2] = EGL_NONE;
|
||||
|
|
|
@ -3059,6 +3059,12 @@ eng_image_native_set(void *data, void *image, void *native)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
# ifndef EGL_WAYLAND_PLANE_WL
|
||||
# define EGL_WAYLAND_PLANE_WL 0x31D6
|
||||
# endif
|
||||
# ifndef EGL_WAYLAND_BUFFER_WL
|
||||
# define EGL_WAYLAND_BUFFER_WL 0x31D5
|
||||
# endif
|
||||
attribs[0] = EGL_WAYLAND_PLANE_WL;
|
||||
attribs[1] = 0; //if plane is 1 then 0, if plane is 2 then 1
|
||||
attribs[2] = EGL_NONE;
|
||||
|
|
|
@ -1197,6 +1197,12 @@ eng_image_native_set(void *data, void *image, void *native)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef EGL_WAYLAND_PLANE_WL
|
||||
# define EGL_WAYLAND_PLANE_WL 0x31D6
|
||||
#endif
|
||||
#ifndef EGL_WAYLAND_BUFFER_WL
|
||||
# define EGL_WAYLAND_BUFFER_WL 0x31D5
|
||||
#endif
|
||||
attribs[0] = EGL_WAYLAND_PLANE_WL;
|
||||
attribs[1] = 0; //if plane is 1 then 0, if plane is 2 then 1
|
||||
attribs[2] = EGL_NONE;
|
||||
|
|
Loading…
Reference in New Issue