summaryrefslogtreecommitdiff
path: root/src/egl/main/eglsurface.h
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-10-23 00:37:19 +0800
committerChia-I Wu <olv@lunarg.com>2010-10-23 11:20:40 +0800
commit4ce33ec606292d92eff5afad6f50e1acc7109729 (patch)
tree15e73d4462dac92bcef2ed4a1687f425f3f66915 /src/egl/main/eglsurface.h
parent07cd8f46acc34b04308f81de2faf05ba33da264b (diff)
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.
Diffstat (limited to 'src/egl/main/eglsurface.h')
-rw-r--r--src/egl/main/eglsurface.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/egl/main/eglsurface.h b/src/egl/main/eglsurface.h
index 729499e80a..2812dc36ab 100644
--- a/src/egl/main/eglsurface.h
+++ b/src/egl/main/eglsurface.h
@@ -81,13 +81,13 @@ _eglIsSurfaceBound(_EGLSurface *surf)
/**
- * Link a surface to a display and return the handle of the link.
+ * Link a surface to its display and return the handle of the link.
* The handle can be passed to client directly.
*/
static INLINE EGLSurface
-_eglLinkSurface(_EGLSurface *surf, _EGLDisplay *dpy)
+_eglLinkSurface(_EGLSurface *surf)
{
- _eglLinkResource(&surf->Resource, _EGL_RESOURCE_SURFACE, dpy);
+ _eglLinkResource(&surf->Resource, _EGL_RESOURCE_SURFACE);
return (EGLSurface) surf;
}