glx: don't destroy context immediately if it's currently bound
authorBrian Paul <brianp@vmware.com>
Fri, 23 Oct 2009 00:19:01 +0000 (18:19 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 23 Oct 2009 00:20:28 +0000 (18:20 -0600)
commit5e6a6a2719c695996490bde491dac267e52f78af
treeb9172df37b2299455694fe18118230ff561fa070
parent4837e01bcd3d011a38d75cc9f1eff629c3de6fd6
glx: don't destroy context immediately if it's currently bound

According to the GLXDestroyContext() man page, the context should not
immediately be destroyed if it's bound to some thread.  Wait until it's
unbound to really delete it.  The code for doing the later part is
already present in MakeContextCurrent() so no change was needed there.
src/glx/x11/glxcmds.c