GS-debug: Fix GSDumps when rt or ds is null.

This commit is contained in:
refractionpcsx2 2022-07-31 08:21:22 +01:00
parent 59fc2a4c15
commit 794c73a613
1 changed files with 2 additions and 2 deletions

View File

@ -1624,7 +1624,7 @@ void GSRendererHW::Draw()
}
}
if (s_save && s_n >= s_saven)
if (rt && s_save && s_n >= s_saven)
{
s = StringUtil::StdStringFromFormat("%05d_f%lld_rt0_%05x_%s.bmp", s_n, frame, context->FRAME.Block(), psm_str(context->FRAME.PSM));
@ -1632,7 +1632,7 @@ void GSRendererHW::Draw()
rt->m_texture->Save(m_dump_root + s);
}
if (s_savez && s_n >= s_saven)
if (ds && s_savez && s_n >= s_saven)
{
s = StringUtil::StdStringFromFormat("%05d_f%lld_rz0_%05x_%s.bmp", s_n, frame, context->ZBUF.Block(), psm_str(context->ZBUF.PSM));