GSdx: Star Ocean 3 depth issue fix

Fixes issue #1475
This commit is contained in:
FlatOutPS2 2016-07-29 12:13:26 +02:00
parent 91e07727e3
commit 02b0451d3c
1 changed files with 2 additions and 2 deletions

View File

@ -856,8 +856,8 @@ void GSTextureCache::InvalidateLocalMem(GSOffset* off, const GSVector4i& r)
if (m_can_convert_depth) { if (m_can_convert_depth) {
for(auto t : m_dst[DepthStencil]) { for(auto t : m_dst[DepthStencil]) {
if(GSUtil::HasSharedBits(bp, psm, t->m_TEX0.TBP0, t->m_TEX0.PSM)) { if(GSUtil::HasSharedBits(bp, psm, t->m_TEX0.TBP0, t->m_TEX0.PSM)) {
// Read the full depth buffer for easy testing if (GSUtil::HasCompatibleBits(psm, t->m_TEX0.PSM))
Read(t, t->m_valid); Read(t, r.rintersect(t->m_valid));
} }
} }
} }