gsdx: avoid null pointer deferencement

This commit is contained in:
Gregory Hainaut committed 2015-09-25 20:59:36 +02:00
1 parent 421043ed12
commit 78b73ba585
1 file changed
+2 -1
+2 -1
View File
@@ -596,7 +596,8 @@ void GSRendererHW::Draw()
{
s = format("%05d_f%lld_rz1_%05x_%d.bmp", s_n, frame, context->ZBUF.Block(), context->ZBUF.PSM);
ds_tex->Save(root_hw+s);
if (ds_tex)
ds_tex->Save(root_hw+s);
}
s_n++;