mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 18:50:29 +00:00
One cleanup
This commit is contained in:
parent
8d83d4bf81
commit
949c4b6dc3
@ -1444,12 +1444,16 @@ static bool d3d_frame(void *data, const void *frame,
|
||||
retro_perf_start(&d3d_frame);
|
||||
|
||||
/* We cannot recover in fullscreen. */
|
||||
if (d3d->needs_restore && IsIconic(window))
|
||||
return true;
|
||||
if (d3d->needs_restore && !d3d_restore(d3d))
|
||||
if (d3d->needs_restore)
|
||||
{
|
||||
RARCH_ERR("[D3D]: Failed to restore.\n");
|
||||
return false;
|
||||
if (IsIconic(window))
|
||||
return true;
|
||||
|
||||
if (!d3d_restore(d3d))
|
||||
{
|
||||
RARCH_ERR("[D3D]: Failed to restore.\n");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (d3d->should_resize)
|
||||
|
Loading…
Reference in New Issue
Block a user