Fix mistake with fetch constant dirty mask
This commit is contained in:
parent
7a0fd0f32a
commit
754293ffc3
|
@ -108,7 +108,7 @@ class TextureCache {
|
|||
// generate a mask of all bits from before the first index, and xor it with
|
||||
// all bits before the last index this produces a mask covering only the
|
||||
// bits between first and last
|
||||
uint32_t res = ((1U << first_index) - 1) ^ ((1U << last_index) - 1);
|
||||
uint32_t res = ((1U << first_index) - 1) ^ ((1U << (last_index + 1)) - 1);
|
||||
// todo: check that this is right
|
||||
|
||||
texture_bindings_in_sync_ &= ~res;
|
||||
|
|
Loading…
Reference in New Issue