summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Kuehling <[email protected]>2005-02-02 15:52:29 +0000
committerFelix Kuehling <[email protected]>2005-02-02 15:52:29 +0000
commit2eb9e67a5a53eeb386aaafb42e382c73c3873a4d (patch)
tree215ead60fb93a49f51e96efb134c75746e30e139
parent8b21166c142392f8b9f12fa6400a4598d66714b3 (diff)
Don't try to kick textures from a NULL tex heap.
-rw-r--r--src/mesa/drivers/dri/common/texmem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/texmem.c b/src/mesa/drivers/dri/common/texmem.c
index 48a8f5c74e9..bc12021411e 100644
--- a/src/mesa/drivers/dri/common/texmem.c
+++ b/src/mesa/drivers/dri/common/texmem.c
@@ -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;