Fixed window destruction.

This commit is contained in:
the_fiddler 2008-01-15 00:10:56 +00:00
parent 6fec7ae4b1
commit 1aa19633f9
2 changed files with 4 additions and 2 deletions

View file

@ -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;

View file

@ -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);