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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user