summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglcontext.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/eglcontext.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/eglcontext.h')
-rw-r--r--src/egl/main/eglcontext.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/egl/main/eglcontext.h b/src/egl/main/eglcontext.h
index b81dc1ed820..be00642d134 100644
--- a/src/egl/main/eglcontext.h
+++ b/src/egl/main/eglcontext.h
@@ -95,9 +95,8 @@ _eglUnlinkContext(_EGLContext *ctx)
static INLINE _EGLContext *
_eglLookupContext(EGLContext context, _EGLDisplay *dpy)
{
- _EGLResource *res = (_EGLResource *) context;
_EGLContext *ctx = (_EGLContext *) context;
- if (!res || !dpy || !_eglCheckResource(res, _EGL_RESOURCE_CONTEXT, dpy))
+ if (!dpy || !_eglCheckResource((void *) ctx, _EGL_RESOURCE_CONTEXT, dpy))
ctx = NULL;
return ctx;
}