st/egl: Fix a crash when unbinding current context.
authorChia-I Wu <olvaffe@gmail.com>
Wed, 30 Sep 2009 03:32:36 +0000 (11:32 +0800)
committerBrian Paul <brianp@vmware.com>
Wed, 30 Sep 2009 14:15:30 +0000 (08:15 -0600)
commitdd81cc885c3d0619921a7de7e00618e412c05697
tree571e0a5db78e84aae84036f97b57a3737e28c746
parentfa8df0c40d44c2f1fe982a07619b1cbf1bfed271
st/egl: Fix a crash when unbinding current context.

This fixes a NULL-pointer dereference when
eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)
is called.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/gallium/state_trackers/egl/egl_context.c
src/gallium/state_trackers/egl/egl_surface.c
src/gallium/state_trackers/egl/egl_tracker.h