diff options
Diffstat (limited to 'src/egl/main/eglcontext.h')
-rw-r--r-- | src/egl/main/eglcontext.h | 3 |
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; } |