Revert "egl: Unhide functionality in _eglInitSurface()"

This reverts commit 498d10e230.
_eglInitResource can and is supposed to be called on subclass objects.

Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
This commit is contained in:
Chia-I Wu 2014-02-19 12:57:11 +08:00
parent c593ad6e46
commit 924490a747

View file

@ -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;