evas: Fix compilation with older EGL (maybe <1.5)
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 19 Oct 2016 04:32:55 +0000 (13:32 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 19 Oct 2016 04:35:12 +0000 (13:35 +0900)
EGLImage was not introduced until very recently. EGLImageKHR was
the proper type. Thanks Roy for the report.

src/modules/evas/engines/gl_x11/evas_engine.c

index f79d566..b5a2ea3 100644 (file)
@@ -80,8 +80,8 @@ glsym_func_void_ptr glsym_evas_gl_common_current_context_get = NULL;
 #ifdef GL_GLES
 
 _eng_fn  (*glsym_eglGetProcAddress)            (const char *a) = NULL;
-EGLImage (*glsym_eglCreateImage)               (EGLDisplay a, EGLContext b, EGLenum c, EGLClientBuffer d, const EGLAttrib *e) = NULL;
-EGLImage (*glsym_eglCreateImageKHR)            (EGLDisplay a, EGLContext b, EGLenum c, EGLClientBuffer d, EGLint *e) = NULL;
+EGLImageKHR (*glsym_eglCreateImage)            (EGLDisplay a, EGLContext b, EGLenum c, EGLClientBuffer d, const EGLAttrib *e) = NULL;
+EGLImageKHR (*glsym_eglCreateImageKHR)         (EGLDisplay a, EGLContext b, EGLenum c, EGLClientBuffer d, EGLint *e) = NULL;
 void     (*glsym_eglDestroyImage)              (EGLDisplay a, void *b) = NULL;
 void     (*glsym_glEGLImageTargetTexture2DOES) (int a, void *b)  = NULL;
 unsigned int   (*glsym_eglSwapBuffersWithDamage) (EGLDisplay a, void *b, const EGLint *d, EGLint c) = NULL;