diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2009-08-15 22:58:13 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2009-09-14 13:39:18 +0800 |
commit | 9e9a4cf4711e72a5eba81476205392097b107e07 (patch) | |
tree | af4cb2ef713c2ac685cd6b0a4f843f29ac03d15a /src/egl/main/eglclient.c | |
parent | 985cefb7690ba20d178722e35c43414d330eb4bb (diff) |
egl: Add support for EGL_KHR_image_base.
Individual drivers still need to implement the API hooks.
Diffstat (limited to 'src/egl/main/eglclient.c')
-rw-r--r-- | src/egl/main/eglclient.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/egl/main/eglclient.c b/src/egl/main/eglclient.c new file mode 100644 index 0000000000..8426301948 --- /dev/null +++ b/src/egl/main/eglclient.c @@ -0,0 +1,21 @@ +/** + * Functions that client APIs can call. + */ + + +#include "eglcurrent.h" +#include "egldisplay.h" +#include "eglimage.h" +#include "eglclient.h" + + +/** + * Return the opaque client data of an image. + */ +void * +_eglClientGetImageData(EGLImageKHR image) +{ + _EGLDisplay *dpy = _eglGetCurrentDisplay(); + _EGLImage *img = _eglLookupImage(image, dpy); + return (img) ? img->ClientData : NULL; +} |