mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-29 16:33:03 +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.");
|
"Your platform is not supported currently. Please, refer to http://opentk.sourceforge.net for more information.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
glWindow.Destroy += glWindow_Destroy;
|
||||||
|
|
||||||
CreateWindow(mode, title);
|
CreateWindow(mode, title);
|
||||||
|
|
||||||
//this.vsync = VSyncMode.Adaptive;
|
//this.vsync = VSyncMode.Adaptive;
|
||||||
|
|
|
@ -111,8 +111,8 @@ namespace OpenTK.Platform.Windows
|
||||||
case WindowMessage.CLOSE:
|
case WindowMessage.CLOSE:
|
||||||
//this.DestroyWindow();
|
//this.DestroyWindow();
|
||||||
this.OnDestroy(EventArgs.Empty);
|
this.OnDestroy(EventArgs.Empty);
|
||||||
//return;
|
return;
|
||||||
break;
|
//break;
|
||||||
|
|
||||||
case WindowMessage.DESTROY:
|
case WindowMessage.DESTROY:
|
||||||
//this.OnDestroy(EventArgs.Empty);
|
//this.OnDestroy(EventArgs.Empty);
|
||||||
|
|
Loading…
Reference in a new issue