Mesa (master): Revert "egl: Unhide functionality in _eglInitContext()"
Chia-I Wu
olv at kemper.freedesktop.org
Wed Feb 19 05:09:24 UTC 2014
Module: Mesa
Branch: master
Commit: dc97e54d97ab9a3816a03a656c1ed530a046da0d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc97e54d97ab9a3816a03a656c1ed530a046da0d
Author: Chia-I Wu <olvaffe at gmail.com>
Date: Wed Feb 19 12:57:15 2014 +0800
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 <juhapekka.heikkila at gmail.com>
---
src/egl/main/eglcontext.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c
index 99d1c3e..79a92c7 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;
More information about the mesa-commit
mailing list