[Feat|Fix] (...): Add/Fix lots of stuff, being able not to crash in MC.

This commit is contained in:
BZLZHH
2025-10-06 16:08:35 +08:00
parent e37dedb72d
commit bd1056f9c9
36 changed files with 1164 additions and 201 deletions
+5 -2
View File
@@ -1,4 +1,5 @@
#include "Includes.h"
#include <MG_Impl/Init.h>
#include <MG_Backend/Backends.h>
#include <MG_State/GLState/Core.h>
@@ -10,13 +11,15 @@ namespace MobileGL {
MGLOG_D("MobileGL State initialized");
MG_Backend::Init();
MGLOG_D("MobileGL Backend initialized");
MG_Impl::Init();
MGLOG_D("MobileGL Implementation initialized");
glslang::InitializeProcess();
MGLOG_D("glslang initialized");
MGLOG_I("MobileGL Initialized");
MGLOG_I("MobileGL initialized");
}
void MG_Destroy() {
MGLOG_I("MobileGL Closing...");
MGLOG_I("MobileGL closing...");
glslang::FinalizeProcess();
MG_Util::Debug::Close();
}