summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/texmem.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2005-09-08 21:40:10 +0000
committerKeith Whitwell <[email protected]>2005-09-08 21:40:10 +0000
commit45ba4e43322076be27e994a1d78b8b4802c5ae72 (patch)
tree7b3eeabb0a7cc3712317fec2024872416347cbc7 /src/mesa/drivers/dri/common/texmem.c
parentd9b9b4b3beafa824914ca460754bf0a9d7ee80b6 (diff)
use an explicit reserved field, rather than magic number in bound
Diffstat (limited to 'src/mesa/drivers/dri/common/texmem.c')
-rw-r--r--src/mesa/drivers/dri/common/texmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/common/texmem.c b/src/mesa/drivers/dri/common/texmem.c
index 5bc27e44936..3dd807c3265 100644
--- a/src/mesa/drivers/dri/common/texmem.c
+++ b/src/mesa/drivers/dri/common/texmem.c
@@ -414,7 +414,7 @@ static void driTexturesGone( driTexHeap * heap, int offset, int size,
}
t->heap = heap;
if (in_use)
- t->bound = 0; /* bound to no tex units */
+ t->reserved = 1;
insert_at_head( & heap->texture_objects, t );
}
}
@@ -572,7 +572,7 @@ driAllocateTexture( driTexHeap * const * heap_array, unsigned nr_heaps,
/* The the LRU element. If the texture is bound to one of
* the texture units, then we cannot kick it out.
*/
- if ( cursor->bound /* || cursor->reserved */ ) {
+ if ( cursor->bound || cursor->reserved ) {
continue;
}