From e050dce79b67ae6386240567a994454711ab998d Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 00:42:05 +0200 Subject: [add]: Custom memory managers and fix includes --- src/Core/Application.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Core/Application.cpp') diff --git a/src/Core/Application.cpp b/src/Core/Application.cpp index 4a0726d..a886327 100644 --- a/src/Core/Application.cpp +++ b/src/Core/Application.cpp @@ -16,7 +16,7 @@ namespace Donut { s_Instance = this; - m_Window = std::make_unique(name, width, height); + m_Window = CreateScope(name, width, height); m_Window->SetEventCallback([this](Event& event) { OnEvent(event); @@ -109,9 +109,9 @@ namespace Donut Renderer::OnWindowResize(1280, 720); RenderCommand::SetFaceCulling(false); - m_StateManager = std::make_unique(); - m_StateManager->RegisterState("Config", std::make_unique()); - m_StateManager->RegisterState("Simulation", std::make_unique()); + m_StateManager = CreateScope(); + m_StateManager->RegisterState("Config", CreateScope()); + m_StateManager->RegisterState("Simulation", CreateScope()); m_StateManager->SwitchToState("Config"); } -- cgit v1.3