mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
a588f61a8a
commit
4a65e5e723
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue