Fixed window destruction.
This commit is contained in:
parent
6fec7ae4b1
commit
1aa19633f9
2 changed files with 4 additions and 2 deletions
|
@ -125,6 +125,8 @@ namespace OpenTK
|
|||
"Your platform is not supported currently. Please, refer to http://opentk.sourceforge.net for more information.");
|
||||
}
|
||||
|
||||
glWindow.Destroy += glWindow_Destroy;
|
||||
|
||||
CreateWindow(mode, title);
|
||||
|
||||
//this.vsync = VSyncMode.Adaptive;
|
||||
|
|
|
@ -111,8 +111,8 @@ namespace OpenTK.Platform.Windows
|
|||
case WindowMessage.CLOSE:
|
||||
//this.DestroyWindow();
|
||||
this.OnDestroy(EventArgs.Empty);
|
||||
//return;
|
||||
break;
|
||||
return;
|
||||
//break;
|
||||
|
||||
case WindowMessage.DESTROY:
|
||||
//this.OnDestroy(EventArgs.Empty);
|
||||
|
|
Loading…
Reference in a new issue