intel: Use the current context rather than last bound context for a drawable.
authorEric Anholt <eric@anholt.net>
Tue, 15 Feb 2011 02:57:49 +0000 (18:57 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 26 Feb 2011 20:43:15 +0000 (12:43 -0800)
commitdea5e57861ec998cb7ee913a8819752cb9fa946b
treea82d9afdebe77e98afbb6bed53a7ce399232f063
parent74cde6505c233f388e902d1daa0e9f186dd012a9
intel: Use the current context rather than last bound context for a drawable.

If another thread bound a context to the drawable then unbound it, the
driContextPriv would end up NULL.

With the previous two fixes, this fixes glx-multithread-makecurrent-2,
despite the issue not being about the multithreaded makecurrent.
src/mesa/drivers/dri/intel/intel_screen.c