summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglmisc.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2009-08-15 22:58:13 +0800
committerChia-I Wu <[email protected]>2010-01-25 11:28:27 +0800
commita1c4a8a3c855d52fbfef10023b9a8f116e163a97 (patch)
tree4e5138454e78a3ec05d9adce04420f7c5047e427 /src/egl/main/eglmisc.c
parent95f8f75ad8bdb1d8e1cc16ea91fed8c407c36abd (diff)
egl: Add support for EGL_KHR_image.
Individual drivers still need to implement the API hooks.
Diffstat (limited to 'src/egl/main/eglmisc.c')
-rw-r--r--src/egl/main/eglmisc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/egl/main/eglmisc.c b/src/egl/main/eglmisc.c
index e66913320b2..5726f5bca8e 100644
--- a/src/egl/main/eglmisc.c
+++ b/src/egl/main/eglmisc.c
@@ -54,6 +54,14 @@ _eglUpdateExtensionsString(_EGLDisplay *dpy)
strcat(exts, "EGL_MESA_screen_surface ");
if (dpy->Extensions.MESA_copy_context)
strcat(exts, "EGL_MESA_copy_context ");
+
+ if (dpy->Extensions.KHR_image_base)
+ strcat(exts, "EGL_KHR_image_base ");
+ if (dpy->Extensions.KHR_image_pixmap)
+ strcat(exts, "EGL_KHR_image_pixmap ");
+ if (dpy->Extensions.KHR_image_base && dpy->Extensions.KHR_image_pixmap)
+ strcat(exts, "EGL_KHR_image ");
+
assert(strlen(exts) < _EGL_MAX_EXTENSIONS_LEN);
}