diff options
author | Kristian Høgsberg <[email protected]> | 2010-09-08 08:52:54 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-09-08 09:01:43 -0400 |
commit | b4bb6680200b5a898583392f4c831c02f41e63f7 (patch) | |
tree | c33c0099696f5847c8ed30b8a41613e3dbcb0706 /src/mesa/drivers/dri/swrast/swrast.c | |
parent | 1a5b32ca0198488e7d616c8cd968471166a97ef3 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/swrast/swrast.c')
-rw-r--r-- | src/mesa/drivers/dri/swrast/swrast.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c index f3903c2e380..ff53ffd0deb 100644 --- a/src/mesa/drivers/dri/swrast/swrast.c +++ b/src/mesa/drivers/dri/swrast/swrast.c @@ -713,6 +713,10 @@ dri_unbind_context(__DRIcontext * cPriv) { TRACE; (void) cPriv; + + /* Unset current context and dispath table */ + _mesa_make_current(NULL, NULL, NULL); + return GL_TRUE; } |