From 754293ffc302374dbe025455cefa0ad1c78ad733 Mon Sep 17 00:00:00 2001 From: "chss95cs@gmail.com" Date: Wed, 14 Dec 2022 10:13:13 -0800 Subject: [PATCH] Fix mistake with fetch constant dirty mask --- src/xenia/gpu/texture_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/gpu/texture_cache.h b/src/xenia/gpu/texture_cache.h index 606367b66..717273275 100644 --- a/src/xenia/gpu/texture_cache.h +++ b/src/xenia/gpu/texture_cache.h @@ -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;