radeon: Also flush if it's not the current context that's being destroyed.
authorHenri Verbeet <hverbeet@gmail.com>
Thu, 15 Jul 2010 18:53:16 +0000 (14:53 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Thu, 15 Jul 2010 18:54:25 +0000 (14:54 -0400)
commitfef9b532cd1631cc53056b9eba4369d1310b88df
tree653fb4c1d744dd97dae13e61645131a3a1804ab5
parent0a7803cbaca13033d9ed31ef33f59efa913fbfce
radeon: Also flush if it's not the current context that's being destroyed.

This avoids calling radeonFlush() during context destruction, when
ctx->DrawBuffer would be NULL.

NOTE: This is a candidate for the 7.8 branch.
src/mesa/drivers/dri/radeon/radeon_common_context.c