mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 04:35:29 +00:00
Set original_resolution to null after a successful call to RestoreResolution().
This commit is contained in:
parent
58ae48833c
commit
6f07dd23f1
|
@ -211,7 +211,10 @@ namespace OpenTK.Graphics
|
|||
{
|
||||
if (original_resolution != null)
|
||||
if (implementation.TryRestoreResolution(this))
|
||||
{
|
||||
current_resolution = original_resolution;
|
||||
original_resolution = null;
|
||||
}
|
||||
else throw new GraphicsModeException(String.Format("Device {0}: Failed to restore resolution.", this));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue