fix: context delete too early

This commit is contained in:
2026-07-17 14:40:54 +08:00
parent 45e9cbcd52
commit eceb1571e4
3 changed files with 5 additions and 6 deletions

View File

@@ -44,14 +44,14 @@ public:
private:
Config m_game_config;
Window m_window;
TextureManager m_texture_manager;
AudioEngine m_audio;
Renderer m_renderer;
Window m_window;
SceneManager m_scene_manager;
inline static uint64_t last_tick = 0;

View File

@@ -1,6 +1,6 @@
#pragma once
#include "Cubed/tools/log.hpp"
#include "Cubed/tools/log.hpp" // IWYU pragma: keep
#include <string>

View File

@@ -17,10 +17,9 @@ namespace Cubed {
App::App()
: m_game_config(ASSETS_PATH "config.toml"),
: m_game_config(ASSETS_PATH "config.toml"), m_window(m_game_config),
m_texture_manager(m_game_config), m_audio(m_game_config),
m_renderer(m_texture_manager, m_game_config), m_window(m_game_config),
m_scene_manager(*this) {}
m_renderer(m_texture_manager, m_game_config), m_scene_manager(*this) {}
App::~App() { stop_text_input(); }