mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
One cleanup
This commit is contained in:
parent
8d83d4bf81
commit
949c4b6dc3
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user