* GameWindow.cs: Improved implementation of GameWindow.Exit(). It should now be possible to cancel the exit through the IsClosing event.
This commit is contained in:
parent
64c6148f53
commit
b896d8952c
1 changed files with 1 additions and 2 deletions
|
@ -261,7 +261,7 @@ namespace OpenTK
|
|||
#region Exit
|
||||
|
||||
/// <summary>
|
||||
/// Gracefully exits the GameWindow. May be called from any thread.
|
||||
/// Closes the GameWindow. Equivalent to <see cref="Close"/> method.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>Override if you are not using <see cref="GameWindow.Run()"/>.</para>
|
||||
|
@ -269,7 +269,6 @@ namespace OpenTK
|
|||
/// </remarks>
|
||||
public virtual void Exit()
|
||||
{
|
||||
isExiting = true;
|
||||
Close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue