One cleanup

This commit is contained in:
twinaphex 2016-01-07 00:26:38 +01:00
parent 8d83d4bf81
commit 949c4b6dc3

View File

@ -1444,13 +1444,17 @@ static bool d3d_frame(void *data, const void *frame,
retro_perf_start(&d3d_frame); retro_perf_start(&d3d_frame);
/* We cannot recover in fullscreen. */ /* We cannot recover in fullscreen. */
if (d3d->needs_restore && IsIconic(window)) if (d3d->needs_restore)
{
if (IsIconic(window))
return true; return true;
if (d3d->needs_restore && !d3d_restore(d3d))
if (!d3d_restore(d3d))
{ {
RARCH_ERR("[D3D]: Failed to restore.\n"); RARCH_ERR("[D3D]: Failed to restore.\n");
return false; return false;
} }
}
if (d3d->should_resize) if (d3d->should_resize)
{ {