Don't try to kick textures from a NULL tex heap.

This commit is contained in:
Felix Kuehling 2005-02-02 15:52:29 +00:00
parent 8b21166c14
commit 2eb9e67a5a

View file

@ -530,6 +530,10 @@ driAllocateTexture( driTexHeap * const * heap_array, unsigned nr_heaps,
if ( t->memBlock == NULL ) {
for ( id = 0 ; (t->memBlock == NULL) && (id < nr_heaps) ; id++ ) {
heap = heap_array[ id ];
if ( heap == NULL )
continue;
if ( t->totalSize <= heap->size ) {
for ( cursor = heap->texture_objects.prev, temp = cursor->prev;