mirror of https://github.com/PCSX2/pcsx2.git
gsdx-debug: keep s_n/pop in sync
This commit is contained in:
parent
5bf5b5bca4
commit
5daf7aa98f
|
@ -353,8 +353,8 @@ void GSRendererHW::Draw()
|
|||
|
||||
if(!rt || !ds)
|
||||
{
|
||||
GL_POP();
|
||||
ASSERT(0);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -379,7 +379,10 @@ void GSRendererHW::Draw()
|
|||
|
||||
tex = m_tc->LookupSource(context->TEX0, env.TEXA, r);
|
||||
|
||||
if(!tex) return;
|
||||
if(!tex) {
|
||||
GL_POP();
|
||||
return;
|
||||
}
|
||||
|
||||
if(GSLocalMemory::m_psm[context->TEX0.PSM].pal > 0)
|
||||
{
|
||||
|
@ -445,6 +448,8 @@ void GSRendererHW::Draw()
|
|||
|
||||
if(m_hacks.m_oi && !(this->*m_hacks.m_oi)(rt->m_texture, ds->m_texture, tex))
|
||||
{
|
||||
s_n += 1; // keep counter sync
|
||||
GL_POP();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -447,7 +447,10 @@ void GSRendererSW::Draw()
|
|||
sd->bbox = bbox;
|
||||
sd->frame = m_perfmon.GetFrame();
|
||||
|
||||
if(!GetScanlineGlobalData(sd)) return;
|
||||
if(!GetScanlineGlobalData(sd)) {
|
||||
s_n += 3; // Keep it sync with HW renderer
|
||||
return;
|
||||
}
|
||||
|
||||
if(0) if(LOG)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue