Major clean up of MakeContextCurrent
authorIan Romanick <idr@us.ibm.com>
Sat, 7 Oct 2006 02:52:18 +0000 (02:52 +0000)
committerIan Romanick <idr@us.ibm.com>
Sat, 7 Oct 2006 02:52:18 +0000 (02:52 +0000)
commitdba173077e24fc523cf41639284ac0130027b4d0
treeec5077d29ff3a85cee8cbb9f723a3e8bcc68c874
parentfa65447d8c3aa4c5e418c567a648dccacfbde0da
Major clean up of MakeContextCurrent

Rearrange most of the internals of MakeContextCurrent. Put all of the code to
bind the new context up front. If that is successful, unbind the old context.
This saves a lot of code and removes some locking crazyiness.

This patch has been tested for indirect rendering with glxinfo, glxgears,
manywin, and wincopy.
src/glx/x11/glxext.c