Revert "egl: Unhide functionality in _eglInitContext()"
authorChia-I Wu <olvaffe@gmail.com>
Wed, 19 Feb 2014 04:57:15 +0000 (12:57 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Wed, 19 Feb 2014 05:08:52 +0000 (13:08 +0800)
This reverts commit 1456ed85f0ed8b9c9f0abd6bd389a089fa3824b2.
_eglInitResource can and is supposed to be called on subclass objects.

Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
src/egl/main/eglcontext.c

index 99d1c3e7595b44912e246c8cea2eea206e3cc93e..79a92c7c4a6c65f27e77c2d29ab8c96d46a575ce 100644 (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;