diff options
author | Alan Hourihane <[email protected]> | 2003-12-08 22:43:10 +0000 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2003-12-08 22:43:10 +0000 |
commit | 73c3c397e4c07b48dcc845add9d80df025e1f0cd (patch) | |
tree | c0cfb2d4d1ac060f8788012ba5fbb85fb73fbbdc /src/mesa/drivers/dri/i810/i810context.c | |
parent | 93c2dacca6a995134ff6d78273385394e7d8ae49 (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/i810/i810context.c')
-rw-r--r-- | src/mesa/drivers/dri/i810/i810context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i810/i810context.c b/src/mesa/drivers/dri/i810/i810context.c index 3bf0a81bcbb..868ae028ef3 100644 --- a/src/mesa/drivers/dri/i810/i810context.c +++ b/src/mesa/drivers/dri/i810/i810context.c @@ -320,12 +320,12 @@ i810DestroyContext(__DRIcontextPrivate *driContextPriv) */ int i; - assert( is_empty_list( & imesa->swapped ) ); - for ( i = 0 ; i < imesa->nr_heaps ; i++ ) { driDestroyTextureHeap( imesa->texture_heaps[ i ] ); imesa->texture_heaps[ i ] = NULL; } + + assert( is_empty_list( & imesa->swapped ) ); } Xfree(imesa); |