From 76bb57d539cb43d267e561024c34e031bf351e04 Mon Sep 17 00:00:00 2001 From: "Andrew F. Davis" Date: Mon, 24 Jun 2019 16:49:56 -0400 Subject: common: Re-support EGL 1.4 by using EGLImageKHR when needed EGLImage was added to core EGL in version 1.5, but was available as an extension in 1.4 as EGLImageKHR, all of the rest of kmscube is EGL 1.4 compatible except this typedef. Allow kmscube to be EGL 1.4 compatible again by checking for EGL 1.5 and if not available falling back to the old typedef name. Signed-off-by: Andrew F. Davis Reviewed-by: Eric Engestrom Reviewed-by: Emil Velikov --- common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.h b/common.h index 6540763..9548e2a 100644 --- a/common.h +++ b/common.h @@ -74,6 +74,10 @@ EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, #endif #endif /* EGL_EXT_platform_base */ +#ifndef EGL_VERSION_1_5 +#define EGLImage EGLImageKHR +#endif /* EGL_VERSION_1_5 */ + #define WEAK __attribute__((weak)) /* Define tokens from EGL_EXT_image_dma_buf_import_modifiers */ -- cgit v1.2.3