mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +08:00
fix: context delete too early
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "Cubed/tools/log.hpp"
|
||||
#include "Cubed/tools/log.hpp" // IWYU pragma: keep
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user