]> O.S.I.I.S - jp/vke.net.git/commitdiff
remove glfw window pointer on cleanup from win list
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Fri, 19 Nov 2021 01:46:22 +0000 (02:46 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Fri, 19 Nov 2021 01:46:22 +0000 (02:46 +0100)
vke/src/VkWindow.cs

index 6071969b4267e212935a46e04e793d427dde7d44..2db417d8163d889dfcd993e347d86ed6417fe4b6 100644 (file)
@@ -407,6 +407,8 @@ namespace vke {
                                if (currentCursor != IntPtr.Zero)
                                        Glfw3.DestroyCursor (currentCursor);
 
+                               windows.Remove (hWin);
+
                                Glfw3.DestroyWindow (hWin);
                                Glfw3.Terminate ();