dri: Unset current context and dispatch table when unbinding
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 8 Sep 2010 12:52:54 +0000 (08:52 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 8 Sep 2010 13:01:43 +0000 (09:01 -0400)
commitb4bb6680200b5a898583392f4c831c02f41e63f7
treec33c0099696f5847c8ed30b8a41613e3dbcb0706
parent1a5b32ca0198488e7d616c8cd968471166a97ef3
dri: Unset current context and dispatch table when unbinding

Otherwise, when we switch to an indirect glx context and then back, it looks
like we're still current.

https://bugs.freedesktop.org/show_bug.cgi?id=29977#c7
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/nouveau/nouveau_context.c
src/mesa/drivers/dri/radeon/radeon_common_context.c
src/mesa/drivers/dri/swrast/swrast.c