summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/mga
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2003-12-08 22:43:10 +0000
committerAlan Hourihane <alanh@tungstengraphics.com>2003-12-08 22:43:10 +0000
commit73c3c397e4c07b48dcc845add9d80df025e1f0cd (patch)
treec0cfb2d4d1ac060f8788012ba5fbb85fb73fbbdc /src/mesa/drivers/dri/mga
parent93c2dacca6a995134ff6d78273385394e7d8ae49 (diff)
fix bogus assertion that checked for an empty texture heap list before
deleting the textures. Essentially move the assertion after the destruction of the heap.
Diffstat (limited to 'src/mesa/drivers/dri/mga')
-rw-r--r--src/mesa/drivers/dri/mga/mga_xmesa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/mga/mga_xmesa.c b/src/mesa/drivers/dri/mga/mga_xmesa.c
index 3752a8b13c..3888d12cb9 100644
--- a/src/mesa/drivers/dri/mga/mga_xmesa.c
+++ b/src/mesa/drivers/dri/mga/mga_xmesa.c
@@ -573,12 +573,12 @@ mgaDestroyContext(__DRIcontextPrivate *driContextPriv)
*/
int i;
- assert( is_empty_list( & mmesa->swapped ) );
-
for ( i = 0 ; i < mmesa->nr_heaps ; i++ ) {
driDestroyTextureHeap( mmesa->texture_heaps[ i ] );
mmesa->texture_heaps[ i ] = NULL;
}
+
+ assert( is_empty_list( & mmesa->swapped ) );
}
/* free the option cache */