From f4aa9b7ffb17c925d73d477852ae6cf9bb34f6b0 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Fri, 10 Jul 2020 18:05:14 -0500 Subject: [PATCH] Removed useless code, fixed early SDL quitting. --- src/SlatedGameToolkit.Framework/GameEngine.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SlatedGameToolkit.Framework/GameEngine.cs b/src/SlatedGameToolkit.Framework/GameEngine.cs index 0004270..0325d7c 100644 --- a/src/SlatedGameToolkit.Framework/GameEngine.cs +++ b/src/SlatedGameToolkit.Framework/GameEngine.cs @@ -16,7 +16,6 @@ namespace SlatedGameToolkit.Framework { /// The main engine that will host the game loop. /// public static class GameEngine { - public static bool Debugging { get; set; } private static readonly object ignitionLock = new object(); private static readonly object deltaUpdateLock = new object(); private static Thread thread; @@ -182,9 +181,9 @@ namespace SlatedGameToolkit.Framework { } stopped = true; manager.Deinitialize(); - SDL.SDL_Quit(); SoLoudEngine.deinit(); WindowContextsManager.DisposeAllWindowContexts(); + SDL.SDL_Quit(); Logger.Log("Game engine has gracefully stopped."); Logger.FlushListeners(); }