projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b21166
)
Don't try to kick textures from a NULL tex heap.
author
Felix Kuehling
<fxkuehl@gmx.de>
Wed, 2 Feb 2005 15:52:29 +0000
(15:52 +0000)
committer
Felix Kuehling
<fxkuehl@gmx.de>
Wed, 2 Feb 2005 15:52:29 +0000
(15:52 +0000)
src/mesa/drivers/dri/common/texmem.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/common/texmem.c
b/src/mesa/drivers/dri/common/texmem.c
index 48a8f5c74e9459c61dfeab63af2687baf882c45d..bc12021411efcdaed30cd1d23307839a59000563 100644
(file)
--- 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;