diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c b/src/modules/evas/engines/gl_common/evas_gl_context.c index 8cca90a3d9..dc04597cbc 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_context.c +++ b/src/modules/evas/engines/gl_common/evas_gl_context.c @@ -55,7 +55,6 @@ void *(*secsym_eglMapImageSEC) (void *a, void *b, int c, unsigned int (*secsym_eglUnmapImageSEC) (void *a, void *b, int c) = NULL; unsigned int (*secsym_eglGetImageAttribSEC) (void *a, void *b, int c, int *d) = NULL; - /* This one is now a local wrapper to avoid type mixups */ void * evas_gl_common_eglCreateImage (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list); static void * (*eglsym_eglCreateImage) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list) = NULL; diff --git a/src/modules/evas/engines/gl_common/evas_gl_define.h b/src/modules/evas/engines/gl_common/evas_gl_define.h index 0e76f419f7..87502505e4 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_define.h +++ b/src/modules/evas/engines/gl_common/evas_gl_define.h @@ -282,6 +282,9 @@ Much of it is from Mesa, so their copyright is included as well. #ifndef EGL_WAYLAND_Y_INVERTED_WL # define EGL_WAYLAND_Y_INVERTED_WL 0x31DB #endif +#ifndef EGL_PLATFORM_X11_KHR +# define EGL_PLATFORM_X11_KHR 0x31D5 +#endif // Evas_3d require GL_BGR, but that's an extention and will not be necessary once we move to Evas_GL_Image #ifndef GL_BGR #define GL_BGR 0x80E0 @@ -329,4 +332,8 @@ Much of it is from Mesa, so their copyright is included as well. #define GL_STENCIL_EXT 0x1802 #endif +#if defined(GL_GLES) && !defined(EGL_VERSION_1_5) +typedef intptr_t EGLAttrib; +#endif + #endif diff --git a/src/modules/evas/engines/gl_drm/evas_engine.c b/src/modules/evas/engines/gl_drm/evas_engine.c index 5fab775110..61f3f07c76 100644 --- a/src/modules/evas/engines/gl_drm/evas_engine.c +++ b/src/modules/evas/engines/gl_drm/evas_engine.c @@ -20,10 +20,6 @@ #define EVAS_GL_UPDATE_TILE_SIZE 16 -#ifndef EGL_VERSION_1_5 -typedef intptr_t EGLAttrib; -#endif - /* external variables */ int _evas_engine_gl_drm_log_dom = -1; int _extn_have_buffer_age = 1; diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c index b76f3eb7c4..cfc40a04c6 100644 --- a/src/modules/evas/engines/gl_drm/evas_outbuf.c +++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c @@ -1,5 +1,4 @@ #include "evas_engine.h" -#include "../gl_common/evas_gl_define.h" /* local variables */ static Outbuf *_evas_gl_drm_window = NULL; diff --git a/src/modules/evas/engines/gl_x11/evas_engine.c b/src/modules/evas/engines/gl_x11/evas_engine.c index 9d6150a85d..94bfdedbb9 100644 --- a/src/modules/evas/engines/gl_x11/evas_engine.c +++ b/src/modules/evas/engines/gl_x11/evas_engine.c @@ -79,10 +79,6 @@ glsym_func_void_ptr glsym_evas_gl_common_current_context_get = NULL; #ifdef GL_GLES -#if !defined(EGL_KHR_cl_event2) && !defined(EGL_VERSION_1_5) -typedef intptr_t EGLAttribKHR; -#endif - _eng_fn (*glsym_eglGetProcAddress) (const char *a) = NULL; EGLImageKHR (*glsym_evas_gl_common_eglCreateImage)(EGLDisplay a, EGLContext b, EGLenum c, EGLClientBuffer d, const EGLAttrib *e) = NULL; void (*glsym_eglDestroyImage) (EGLDisplay a, void *b) = NULL; @@ -2938,7 +2934,7 @@ eng_image_native_set(void *data, void *image, void *native) { if ((n = calloc(1, sizeof(Native)))) { - EGLAttribKHR attribs[3]; + EGLAttrib attribs[3]; int format, yinvert = 1; glsym_eglQueryWaylandBufferWL(eng_get_ob(re)->egl_disp, wl_buf, diff --git a/src/modules/evas/engines/gl_x11/evas_x_main.c b/src/modules/evas/engines/gl_x11/evas_x_main.c index 18fad57069..4cd47f528d 100644 --- a/src/modules/evas/engines/gl_x11/evas_x_main.c +++ b/src/modules/evas/engines/gl_x11/evas_x_main.c @@ -151,14 +151,6 @@ _visuals_hash_index_get_from_info(Evas_Engine_Info_GL_X11 *info) #ifdef GL_GLES -#ifndef EGL_PLATFORM_X11_KHR -# define EGL_PLATFORM_X11_KHR 0x31D5 -#endif - -#ifndef EGL_VERSION_1_5 -typedef intptr_t EGLAttrib; -#endif - static EGLDisplay * _x11_eglGetDisplay(Display *x11_display) {