From 32f420dbe5e99d506d0375427ea6e6f01c834f21 Mon Sep 17 00:00:00 2001 From: iMineLink Date: Sun, 30 Jan 2022 23:54:43 +0100 Subject: [PATCH] GS: fix overlap check in hw tc. Textures can span a single block indeed. Fixes Jak 3 desert rendering. --- pcsx2/GS/Renderers/HW/GSTextureCache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/HW/GSTextureCache.h b/pcsx2/GS/Renderers/HW/GSTextureCache.h index c53c12bcb1..ebf7c27ab2 100644 --- a/pcsx2/GS/Renderers/HW/GSTextureCache.h +++ b/pcsx2/GS/Renderers/HW/GSTextureCache.h @@ -35,7 +35,7 @@ public: constexpr static bool CheckOverlap(const u32 a_bp, const u32 a_bp_end, const u32 b_bp, const u32 b_bp_end) noexcept { - const bool valid = a_bp < a_bp_end && b_bp < b_bp_end; + const bool valid = a_bp <= a_bp_end && b_bp <= b_bp_end; const bool overlap = a_bp <= b_bp_end && a_bp_end >= b_bp; return valid && overlap; }