summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200
diff options
context:
space:
mode:
authorAlan Hourihane <[email protected]>2003-12-08 22:43:10 +0000
committerAlan Hourihane <[email protected]>2003-12-08 22:43:10 +0000
commit73c3c397e4c07b48dcc845add9d80df025e1f0cd (patch)
treec0cfb2d4d1ac060f8788012ba5fbb85fb73fbbdc /src/mesa/drivers/dri/r200
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/r200')
-rw-r--r--src/mesa/drivers/dri/r200/r200_context.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_context.c b/src/mesa/drivers/dri/r200/r200_context.c
index c08c411e22d..2da6ef3abb1 100644
--- a/src/mesa/drivers/dri/r200/r200_context.c
+++ b/src/mesa/drivers/dri/r200/r200_context.c
@@ -530,13 +530,12 @@ void r200DestroyContext( __DRIcontextPrivate *driContextPriv )
*/
int i;
- /* this assert is wrong. The default textures are always on swap list
- assert( is_empty_list( & rmesa->swapped ) ); */
-
for ( i = 0 ; i < rmesa->nr_heaps ; i++ ) {
driDestroyTextureHeap( rmesa->texture_heaps[ i ] );
rmesa->texture_heaps[ i ] = NULL;
}
+
+ assert( is_empty_list( & rmesa->swapped ) );
}
/* free the option cache */