mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 18:50:29 +00:00
reimplement d3d_restore
This commit is contained in:
parent
e8656333f1
commit
a425ca98ed
@ -432,12 +432,16 @@ bool d3d_restore(void *data)
|
||||
return false;
|
||||
|
||||
d3d_deinitialize(d3d);
|
||||
d3d->needs_restore = !d3d_initialize(d3d, &d3d->video_info);
|
||||
|
||||
if (d3d->needs_restore)
|
||||
if (!d3d_initialize(d3d, &d3d->video_info))
|
||||
{
|
||||
RARCH_ERR("[D3D]: Restore error.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
return !d3d->needs_restore;
|
||||
d3d->needs_restore = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user