aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldisplay.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-10-23 00:37:19 +0800
committerChia-I Wu <[email protected]>2010-10-23 11:20:40 +0800
commit4ce33ec606292d92eff5afad6f50e1acc7109729 (patch)
tree15e73d4462dac92bcef2ed4a1687f425f3f66915 /src/egl/main/egldisplay.c
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/egldisplay.c')
-rw-r--r--src/egl/main/egldisplay.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c
index cc0f03e01ba..47dcc3e05a5 100644
--- a/src/egl/main/egldisplay.c
+++ b/src/egl/main/egldisplay.c
@@ -233,17 +233,16 @@ _eglCheckResource(void *res, _EGLResourceType type, _EGLDisplay *dpy)
/**
- * Link a resource to a display.
+ * Link a resource to its display.
*/
void
-_eglLinkResource(_EGLResource *res, _EGLResourceType type, _EGLDisplay *dpy)
+_eglLinkResource(_EGLResource *res, _EGLResourceType type)
{
- assert(!res->Display || res->Display == dpy);
+ assert(res->Display);
- res->Display = dpy;
res->IsLinked = EGL_TRUE;
- res->Next = dpy->ResourceLists[type];
- dpy->ResourceLists[type] = res;
+ res->Next = res->Display->ResourceLists[type];
+ res->Display->ResourceLists[type] = res;
}