aboutsummaryrefslogtreecommitdiff
path: root/core/src/Entrypoint/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/Entrypoint/main.cpp')
-rw-r--r--core/src/Entrypoint/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/Entrypoint/main.cpp b/core/src/Entrypoint/main.cpp
index 39943d6..ce8aab7 100644
--- a/core/src/Entrypoint/main.cpp
+++ b/core/src/Entrypoint/main.cpp
@@ -5,6 +5,7 @@
#include "Entrypoint/OpenGL2.hpp"
#include "Entrypoint/OpenGL3.hpp"
#include "Entrypoint/Vulkan.hpp"
+#include "Model/GlobalStates.hpp"
#include "UI/Localization.hpp"
#include "UI/States.hpp"
#include "UI/UI.hpp"
@@ -143,6 +144,7 @@ int main(int argc, char* argv[]) {
I18n::Init();
I18n::SetLanguage("zh_CN");
+ GlobalStates::Init();
UIState::Init();
auto window = backend->GetWindow();
@@ -152,5 +154,7 @@ int main(int argc, char* argv[]) {
backend->EndFrame();
}
+ GlobalStates::Shutdown();
+
return 0;
}