diff options
author | Chia-I Wu <[email protected]> | 2010-10-23 11:59:03 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-10-23 15:19:34 +0800 |
commit | dc4f845c37a8446de19036e24fd397a0aa864c02 (patch) | |
tree | 7b1d125da53a1a6f932eae5cdbbdbcf489474601 /src/egl/main/eglsurface.c | |
parent | 662e098b560c6983f5ac320cc5ff7a82ecdc5f8a (diff) |
egl: Add reference count for resources.
This is a really simple mechanism. There is no atomicity and the caller
is expected to hold the display lock.
Diffstat (limited to 'src/egl/main/eglsurface.c')
-rw-r--r-- | src/egl/main/eglsurface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c index 74f10230eaa..cc505045e12 100644 --- a/src/egl/main/eglsurface.c +++ b/src/egl/main/eglsurface.c @@ -269,8 +269,7 @@ _eglInitSurface(_EGLSurface *surf, _EGLDisplay *dpy, EGLint type, return EGL_FALSE; } - memset(surf, 0, sizeof(_EGLSurface)); - surf->Resource.Display = dpy; + _eglInitResource(&surf->Resource, sizeof(*surf), dpy); surf->Type = type; surf->Config = conf; |