diff options
author | Andrew F. Davis <afd@ti.com> | 2019-06-24 16:49:56 -0400 |
---|---|---|
committer | Eric Engestrom <eric.engestrom@intel.com> | 2019-09-18 08:16:52 +0100 |
commit | 76bb57d539cb43d267e561024c34e031bf351e04 (patch) | |
tree | c7de038a4d814b31ce28f0ca4d42e31afa6796c5 | |
parent | be24eadef7c8f71ede52997fa477ae94600efa9d (diff) |
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 <afd@ti.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
-rw-r--r-- | common.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |