Revert "egl: Unhide functionality in _eglInitContext()"

This reverts commit 1456ed85f0.
_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:15 +08:00
parent 924490a747
commit dc97e54d97
+1 -2
View File
@@ -366,8 +366,7 @@ _eglInitContext(_EGLContext *ctx, _EGLDisplay *dpy, _EGLConfig *conf,
return EGL_FALSE;
}
memset(ctx, 0, sizeof(_EGLContext));
_eglInitResource(&ctx->Resource, sizeof(_EGLResource), dpy);
_eglInitResource(&ctx->Resource, sizeof(*ctx), dpy);
ctx->ClientAPI = api;
ctx->Config = conf;
ctx->WindowRenderBuffer = EGL_NONE;