mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-16 18:00:36 +01:00
Don't try to kick textures from a NULL tex heap.
This commit is contained in:
parent
8b21166c14
commit
2eb9e67a5a
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue