summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-02-19 12:57:15 +0800
committerChia-I Wu <[email protected]>2014-02-19 13:08:52 +0800
commitdc97e54d97ab9a3816a03a656c1ed530a046da0d (patch)
tree98c6156bfe854a68e32ddc9f7b6814477b7ebc16 /src/egl
parent924490a747f7ee192815c7f9872a05f66243e9df (diff)
Revert "egl: Unhide functionality in _eglInitContext()"
This reverts commit 1456ed85f0ed8b9c9f0abd6bd389a089fa3824b2. _eglInitResource can and is supposed to be called on subclass objects. Acked-by: Juha-Pekka Heikkila <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/main/eglcontext.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c
index 99d1c3e7595..79a92c7c4a6 100644
--- a/src/egl/main/eglcontext.c
+++ b/src/egl/main/eglcontext.c
@@ -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;