From 0d8b874c0048ca088bb9e353a5f7c62e1f8cd0e8 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 00:42:05 +0200 Subject: feat: 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 b05e2b5..f2284cd 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 = create_scope(name, width, height); m_window->set_event_callback([this](Event& event) { on_event(event); @@ -109,9 +109,9 @@ namespace Donut Renderer::on_window_resize(1280, 720); RenderCommand::set_face_culling(false); - m_state_manager = std::make_unique(); - m_state_manager->register_state("Config", std::make_unique()); - m_state_manager->register_state("Simulation", std::make_unique()); + m_state_manager = create_scope(); + m_state_manager->register_state("Config", create_scope()); + m_state_manager->register_state("Simulation", create_scope()); m_state_manager->switch_to_state("Config"); } -- cgit v1.3