summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-02-19 12:57:11 +0800
committerChia-I Wu <[email protected]>2014-02-19 13:08:44 +0800
commit924490a747f7ee192815c7f9872a05f66243e9df (patch)
tree793274dd6c05a769de9308afa78e1cebd157d055
parentc593ad6e467b07ec0c70923d79259dbfb68b1bed (diff)
Revert "egl: Unhide functionality in _eglInitSurface()"
This reverts commit 498d10e230663f8604d00608cae6324f779c9cdd. _eglInitResource can and is supposed to be called on subclass objects. Acked-by: Juha-Pekka Heikkila <[email protected]>
-rw-r--r--src/egl/main/eglsurface.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c
index 1dca3e06876..c5ea2245b3d 100644
--- a/src/egl/main/eglsurface.c
+++ b/src/egl/main/eglsurface.c
@@ -314,9 +314,7 @@ _eglInitSurface(_EGLSurface *surf, _EGLDisplay *dpy, EGLint type,
return EGL_FALSE;
}
-
- memset(surf, 0, sizeof(_EGLSurface));
- _eglInitResource(&surf->Resource, sizeof(_EGLResource), dpy);
+ _eglInitResource(&surf->Resource, sizeof(*surf), dpy);
surf->Type = type;
surf->Config = conf;