From 42c205db00f75654269c5b800c40f004727c5d6c Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 14 Jan 2008 23:43:56 +0000 Subject: [PATCH] Fixed a GameWindow exit bug, where the GameWindow didn't send the destroy message on GameWindow.Exit(). --- Source/OpenTK/Platform/Windows/WinGLNative.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/Windows/WinGLNative.cs b/Source/OpenTK/Platform/Windows/WinGLNative.cs index db5fa039..cba8e79c 100644 --- a/Source/OpenTK/Platform/Windows/WinGLNative.cs +++ b/Source/OpenTK/Platform/Windows/WinGLNative.cs @@ -111,7 +111,8 @@ namespace OpenTK.Platform.Windows case WindowMessage.CLOSE: //this.DestroyWindow(); this.OnDestroy(EventArgs.Empty); - return; + //return; + break; case WindowMessage.DESTROY: //this.OnDestroy(EventArgs.Empty);