GLX: attempt to fix glean makeCurrent test cases.
authorBrian Paul <brianp@vmware.com>
Wed, 17 Jun 2009 13:58:35 +0000 (07:58 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 17 Jun 2009 14:03:19 +0000 (08:03 -0600)
commitc53705ed7b89e5a2586b534508182de9c72452ea
treee441f38c3aed6f1bc6c8f8fd3360a9e2191eb3d1
parentebe0796ba2d314202c30a1c9291a7e725c64b16a
GLX: attempt to fix glean makeCurrent test cases.

Two parts to this:

One we don't keep pointers to possibly freed memory anymore once we unbind the
drawables from the context. Brian I need to figure out what the comment
you made there, can we get a glean/piglit test so we can fix it properly?

If the new gc is the same as the oldGC, we call the unbind even though
we just bound it in that function. doh.

(cherry picked from master, commit 77506dac8e81e9548a7e9680ce367175fe5747af)
src/glx/x11/glxcurrent.c
src/mesa/drivers/dri/common/dri_util.c