GS: fix overlap check in hw tc.

Textures can span a single block indeed.
Fixes Jak 3 desert rendering.
This commit is contained in:
iMineLink 2022-01-30 23:54:43 +01:00 committed by refractionpcsx2
parent 6d0e35ddcb
commit 32f420dbe5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}