}
t->heap = heap;
if (in_use)
- t->bound = 0; /* bound to no tex units */
+ t->reserved = 1;
insert_at_head( & heap->texture_objects, t );
}
}
/* 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;
}
* A placeholder should have a heap and a memBlock.
*/
PMemBlock memBlock; /**< Memory block containing texture */
+
+ unsigned reserved; /**< Cannot be swapped out by user contexts. */
+
unsigned bound; /**< Bitmask indicating which tex units
* this texture object is bound to.
* Bit 0 = unit 0, Bit 1 = unit 1, etc