mirror of https://github.com/PCSX2/pcsx2.git
GS: fix overlap check in hw tc.
Textures can span a single block indeed. Fixes Jak 3 desert rendering.
This commit is contained in:
parent
6d0e35ddcb
commit
32f420dbe5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue