From 96bcb09fb2a4e5146469bd09f1f4c24405169790 Mon Sep 17 00:00:00 2001 From: mimimi085181 Date: Sat, 17 Jan 2015 19:10:00 +0100 Subject: [PATCH] Fix another small bug with the efb2ram cache Textures that are directly next to each other were falsely detected as overlapping. --- Source/Core/VideoCommon/TextureCacheBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index a2b32410f9..38449ae5eb 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -227,7 +227,7 @@ bool TextureCache::Find(u32 start_address, u64 hash) bool TextureCache::TCacheEntryBase::OverlapsMemoryRange(u32 range_address, u32 range_size) const { - if (addr + size_in_bytes < range_address) + if (addr + size_in_bytes <= range_address) return false; if (addr >= range_address + range_size)