summaryrefslogtreecommitdiff
path: root/src/egl/main/eglclient.c
blob: 8426301948323a4c4ac7006695dd94d5773e1887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}