gsdx tc: potentially fix a regression

Update done on f712c5c6d0

Previous code use the size of the draw to compute latest block. I
don't know why I use .x/.y which are the origin offset so the start of the block.
This commit is contained in:
Gregory Hainaut 2016-06-26 18:32:04 +02:00
parent 2844facae5
commit 16affc9ef4
1 changed files with 1 additions and 1 deletions

View File

@ -1852,7 +1852,7 @@ void GSTextureCache::Target::UpdateValidity(const GSVector4i& rect)
bool GSTextureCache::Target::Inside(uint32 bp, uint32 bw, uint32 psm, const GSVector4i& rect)
{
uint32 block = GSLocalMemory::m_psm[psm].bn(rect.x, rect.y, bp, bw);
uint32 block = GSLocalMemory::m_psm[psm].bn(rect.width(), rect.height(), bp, bw);
return bp > m_TEX0.TBP0 && block < m_end_block;
}