glx: Destroy the old context only after the new one has been bound
authorJeremy Huddleston <jeremyhu@apple.com>
Fri, 17 Jun 2011 19:28:05 +0000 (12:28 -0700)
committerJeremy Huddleston <jeremyhu@apple.com>
Mon, 20 Jun 2011 23:54:58 +0000 (16:54 -0700)
commit517614141be2a1f392a4ea87c1077911ccadf35f
tree27102b4c9118d7c512b548a099e6da6f97f94af8
parent559e4f8ebcb186b491d7d687ac43f22a62448fc1
glx: Destroy the old context only after the new one has been bound

This fixes a regression introduced by 49d7e48b33264d94e30af6129c281b6acafa9427

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
src/glx/glxcurrent.c