diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/egl/main/eglcontext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c index 79a92c7c4a6..99d1c3e7595 100644 --- a/src/egl/main/eglcontext.c +++ b/src/egl/main/eglcontext.c @@ -366,7 +366,8 @@ _eglInitContext(_EGLContext *ctx, _EGLDisplay *dpy, _EGLConfig *conf, return EGL_FALSE; } - _eglInitResource(&ctx->Resource, sizeof(*ctx), dpy); + memset(ctx, 0, sizeof(_EGLContext)); + _eglInitResource(&ctx->Resource, sizeof(_EGLResource), dpy); ctx->ClientAPI = api; ctx->Config = conf; ctx->WindowRenderBuffer = EGL_NONE; |