working on window handling

This commit is contained in:
max
2024-07-10 23:18:56 +02:00
parent 2c839d8fad
commit 42b978e8c9
3 changed files with 25 additions and 29 deletions

View File

@ -136,9 +136,9 @@ public class Window
private void ProcessCloseEvent(ref SDL.SDL_WindowEvent ev)
{
OnCloseEvent?.Invoke(this);
Engine.GraphicsDevice.UnclaimWindow(this);
Dispose();
OnCloseEvent?.Invoke(this);
}
/// <summary>