From 4ce33ec606292d92eff5afad6f50e1acc7109729 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sat, 23 Oct 2010 00:37:19 +0800 Subject: egl: Drop dpy argument from the link functions. All display resources are already initialized with a display. Linking simply links a resource to its display. --- src/egl/main/eglcontext.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/egl/main/eglcontext.h') diff --git a/src/egl/main/eglcontext.h b/src/egl/main/eglcontext.h index 148f160cae..c2b8280b67 100644 --- a/src/egl/main/eglcontext.h +++ b/src/egl/main/eglcontext.h @@ -56,13 +56,13 @@ _eglIsContextBound(_EGLContext *ctx) /** - * Link a context to a display and return the handle of the link. + * Link a context to its display and return the handle of the link. * The handle can be passed to client directly. */ static INLINE EGLContext -_eglLinkContext(_EGLContext *ctx, _EGLDisplay *dpy) +_eglLinkContext(_EGLContext *ctx) { - _eglLinkResource(&ctx->Resource, _EGL_RESOURCE_CONTEXT, dpy); + _eglLinkResource(&ctx->Resource, _EGL_RESOURCE_CONTEXT); return (EGLContext) ctx; } -- cgit v1.2.3