diff options
author | Brian Paul <[email protected]> | 2005-09-08 18:47:36 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-08 18:47:36 +0000 |
commit | d9b9b4b3beafa824914ca460754bf0a9d7ee80b6 (patch) | |
tree | 2b0cf8ee4c4d7534fea07905e4b38fd6fb97d1fb /src/mesa/drivers/dri/common/texmem.h | |
parent | b5cbaf945dd5213d5faf7bb7e4d68d0d25a25b55 (diff) |
Fix the comment for the 'bound' field: it's a bitmask, not an index.
In driTexturesGone(), set bound = 0, not 99.
Diffstat (limited to 'src/mesa/drivers/dri/common/texmem.h')
-rw-r--r-- | src/mesa/drivers/dri/common/texmem.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/texmem.h b/src/mesa/drivers/dri/common/texmem.h index 705cd4d3445..486cb0dab94 100644 --- a/src/mesa/drivers/dri/common/texmem.h +++ b/src/mesa/drivers/dri/common/texmem.h @@ -67,7 +67,10 @@ struct dri_texture_object { * A placeholder should have a heap and a memBlock. */ PMemBlock memBlock; /**< Memory block containing texture */ - unsigned bound; /**< Texture unit currently bound to */ + unsigned bound; /**< Bitmask indicating which tex units + * this texture object is bound to. + * Bit 0 = unit 0, Bit 1 = unit 1, etc + */ unsigned totalSize; /**< Total size of the texture, * including all mipmap levels |