summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Verbeet <hverbeet@gmail.com>2010-07-15 14:53:16 -0400
committerTom Fogal <tfogal@alumni.unh.edu>2010-08-03 12:03:55 -0600
commit9cad102121233b90a1affca7456ff6de41cfbde2 (patch)
tree793d319369f1f0f59db573723446ac211b1297aa
parent66ad60399ae005084ad8c07569a1c9a461c39ec9 (diff)
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. (cherry picked from commit fef9b532cd1631cc53056b9eba4369d1310b88df)
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_common_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.c b/src/mesa/drivers/dri/radeon/radeon_common_context.c
index 94f476617b..5a7d52c4d2 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c
@@ -300,10 +300,10 @@ void radeonDestroyContext(__DRIcontext *driContextPriv )
_mesa_meta_free(radeon->glCtx);
if (radeon == current) {
- radeon_firevertices(radeon);
_mesa_make_current(NULL, NULL, NULL);
}
+ radeon_firevertices(radeon);
if (!is_empty_list(&radeon->dma.reserved)) {
rcommonFlushCmdBuf( radeon, __FUNCTION__ );
}