gallium: check ctx->DrawBuffer before flushing bitmap cache.
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 7 Apr 2008 22:45:17 +0000 (16:45 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 7 Apr 2008 22:45:17 +0000 (16:45 -0600)
commit985134211d9fbfe9b7885beeeb85fdcf2ab78f87
tree5f999b1217d7b08a21179dfb4f9e3ad81509ccfd
parentd28a2004b8a69d66595f2c6b5398085b73873533
gallium: check ctx->DrawBuffer before flushing bitmap cache.

During context unbind, we may not have a draw buffer.
This fixes demos/tunnel2.c
src/mesa/state_tracker/st_cb_bitmap.c