OSDN Git Service

egl: Add support for EGL_KHR_image_base.
[android-x86/external-mesa.git] / src / egl / main / eglclient.c
1 /**
2  * Functions that client APIs can call.
3  */
4
5
6 #include "eglcurrent.h"
7 #include "egldisplay.h"
8 #include "eglimage.h"
9 #include "eglclient.h"
10
11
12 /**
13  * Return the opaque client data of an image.
14  */
15 void *
16 _eglClientGetImageData(EGLImageKHR image)
17 {
18    _EGLDisplay *dpy = _eglGetCurrentDisplay();
19    _EGLImage *img = _eglLookupImage(image, dpy);
20    return (img) ? img->ClientData : NULL;
21 }