gsdx-debug: keep s_n/pop in sync

This commit is contained in:
Gregory Hainaut 2015-06-07 09:42:12 +02:00
parent 5bf5b5bca4
commit 5daf7aa98f
2 changed files with 11 additions and 3 deletions

View File

@ -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;
}

View File

@ -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)
{