summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldisplay.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-01-25 11:39:44 +0800
committerChia-I Wu <[email protected]>2010-01-25 11:44:13 +0800
commitdbb866ab33862defc2749134805bafebf323fd11 (patch)
tree7f6c37e9371d6341838bbb7c3eed7b702fe784dd /src/egl/main/egldisplay.h
parent3f932a444021958d632e3e6334d7b168304dfd74 (diff)
egl: Make resource void pointer in _eglCheckResource.
This emphasizes the fact that the resource to be checked could really be invalid and have an unknown type.
Diffstat (limited to 'src/egl/main/egldisplay.h')
-rw-r--r--src/egl/main/egldisplay.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h
index 70fe29513c1..5d44eb1ea88 100644
--- a/src/egl/main/egldisplay.h
+++ b/src/egl/main/egldisplay.h
@@ -107,7 +107,7 @@ _eglCheckDisplayHandle(EGLDisplay dpy);
extern EGLBoolean
-_eglCheckResource(_EGLResource *res, _EGLResourceType type, _EGLDisplay *dpy);
+_eglCheckResource(void *res, _EGLResourceType type, _EGLDisplay *dpy);
#else /* !_EGL_SKIP_HANDLE_CHECK */
@@ -122,9 +122,9 @@ _eglCheckDisplayHandle(EGLDisplay dpy)
static INLINE EGLBoolean
-_eglCheckResource(_EGLResource *res, _EGLResourceType type, _EGLDisplay *dpy)
+_eglCheckResource(void *res, _EGLResourceType type, _EGLDisplay *dpy);
{
- return (res->Display == dpy);
+ return (((_EGLResource *) res)->Display == dpy);
}