mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 15:45:29 +00:00
Fixed window destruction.
This commit is contained in:
parent
6fec7ae4b1
commit
1aa19633f9
|
@ -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