mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Fixed crashes due to wrong use of append allocations
This commit is contained in:
@@ -20,13 +20,13 @@ namespace GlitchyEngine
|
||||
private bool _running = true;
|
||||
private bool _isMinimized = false;
|
||||
|
||||
private append LayerStack _layerStack = .() ~ delete:append _;
|
||||
private append LayerStack _layerStack = .();
|
||||
|
||||
#if IMGUI
|
||||
private ImGuiLayer _imGuiLayer;
|
||||
#endif
|
||||
|
||||
private append GameTime _gameTime = .() ~ delete:append _;
|
||||
private append GameTime _gameTime = .();
|
||||
|
||||
private IContentManager _contentManager;
|
||||
|
||||
@@ -98,6 +98,8 @@ namespace GlitchyEngine
|
||||
{
|
||||
Profiler.ProfileFunction!();
|
||||
|
||||
_layerStack.ClearLayers();
|
||||
|
||||
SamplerStateManager.Uninit();
|
||||
|
||||
Renderer.Deinit();
|
||||
|
||||
Reference in New Issue
Block a user