egl: Unhide functionality in _eglInitContext()
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Fri, 7 Feb 2014 12:44:04 +0000 (14:44 +0200)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Feb 2014 15:14:05 +0000 (08:14 -0700)
commit1456ed85f0ed8b9c9f0abd6bd389a089fa3824b2
tree7c3538e69078fc760508bd1e6a7dfbfc6ae3ed9c
parentd530745169282469b2dd8221629ef948ff31bcf3
egl: Unhide functionality in _eglInitContext()

_eglInitResource() was used to memset entire _EGLContext by
writing more than size of pointed target. This does work
as long as Resource is the first element in _EGLContext,
this patch fixes such dependency.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/egl/main/eglcontext.c