gsdx-tc: don't try to read a 0 pixels texture

"Regression" introduced in 8 bits RT support

The case appears when
1/ address of RT is the same as input texture
2/ input format is 8 bits
3/ previous lookup of RT was miss
This commit is contained in:
Gregory Hainaut 2015-06-25 19:00:58 +02:00
parent a588f61a8a
commit 4a65e5e723
3 changed files with 3 additions and 5 deletions

View File

@ -50,7 +50,7 @@ void GSTextureCache11::Read(Target* t, const GSVector4i& r)
return;
}
if(!t->m_dirty.empty())
if (!t->m_dirty.empty() || (r.width() == 0 && r.height() == 0))
{
return;
}

View File

@ -50,7 +50,7 @@ void GSTextureCache9::Read(Target* t, const GSVector4i& r)
return;
}
if(!t->m_dirty.empty())
if (!t->m_dirty.empty() || (r.width() == 0 && r.height() == 0))
{
return;
}

View File

@ -30,10 +30,8 @@ GSTextureCacheOGL::GSTextureCacheOGL(GSRenderer* r)
void GSTextureCacheOGL::Read(Target* t, const GSVector4i& r)
{
if(!t->m_dirty.empty())
{
if (!t->m_dirty.empty() || (r.width() == 0 && r.height() == 0))
return;
}
const GIFRegTEX0& TEX0 = t->m_TEX0;