mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-27 05:35:13 +00:00
Debugging GameWindow.Exit() sequence on Mono.
This commit is contained in:
parent
e404e9791e
commit
b9c7a62d4f
|
@ -156,7 +156,7 @@ namespace OpenTK
|
|||
public virtual void Exit()
|
||||
{
|
||||
isExiting = true;
|
||||
UpdateFrame += GameWindow_UpdateFrame;
|
||||
UpdateFrame += CallExitInternal;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
@ -168,12 +168,13 @@ namespace OpenTK
|
|||
/// </summary>
|
||||
void ExitInternal()
|
||||
{
|
||||
Debug.Print("Firing GameWindowExitException");
|
||||
throw new GameWindowExitException();
|
||||
}
|
||||
|
||||
void GameWindow_UpdateFrame(GameWindow sender, UpdateFrameEventArgs e)
|
||||
void CallExitInternal(GameWindow sender, UpdateFrameEventArgs e)
|
||||
{
|
||||
UpdateFrame -= GameWindow_UpdateFrame;
|
||||
UpdateFrame -= CallExitInternal;
|
||||
sender.ExitInternal();
|
||||
}
|
||||
|
||||
|
@ -555,7 +556,7 @@ namespace OpenTK
|
|||
}
|
||||
catch (GameWindowExitException)
|
||||
{
|
||||
Trace.WriteLine("Exiting main loop.");
|
||||
Trace.WriteLine("GameWindowExitException caught - exiting main loop.");
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue