Fixed a GameWindow exit bug, where the GameWindow didn't send the destroy message on GameWindow.Exit().

This commit is contained in:
the_fiddler 2008-01-14 23:43:56 +00:00
parent 165f36f6c0
commit 42c205db00

View file

@ -111,7 +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;
case WindowMessage.DESTROY: case WindowMessage.DESTROY:
//this.OnDestroy(EventArgs.Empty); //this.OnDestroy(EventArgs.Empty);