diff options
author | Chia-I Wu <[email protected]> | 2010-01-25 11:39:44 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-01-25 11:44:13 +0800 |
commit | dbb866ab33862defc2749134805bafebf323fd11 (patch) | |
tree | 7f6c37e9371d6341838bbb7c3eed7b702fe784dd /src/egl/main/eglimage.h | |
parent | 3f932a444021958d632e3e6334d7b168304dfd74 (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/eglimage.h')
-rw-r--r-- | src/egl/main/eglimage.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/egl/main/eglimage.h b/src/egl/main/eglimage.h index 026b10307de..43107c23e9f 100644 --- a/src/egl/main/eglimage.h +++ b/src/egl/main/eglimage.h @@ -61,9 +61,8 @@ _eglUnlinkImage(_EGLImage *img) static INLINE _EGLImage * _eglLookupImage(EGLImageKHR image, _EGLDisplay *dpy) { - _EGLResource *res = (_EGLResource *) image; _EGLImage *img = (_EGLImage *) image; - if (!res || !dpy || !_eglCheckResource(res, _EGL_RESOURCE_IMAGE, dpy)) + if (!dpy || !_eglCheckResource((void *) img, _EGL_RESOURCE_IMAGE, dpy)) img = NULL; return img; } |