From dbb866ab33862defc2749134805bafebf323fd11 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 25 Jan 2010 11:39:44 +0800 Subject: 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. --- src/egl/main/egldisplay.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/egl/main/egldisplay.h') diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h index 70fe29513c..5d44eb1ea8 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); } -- cgit v1.2.3