* Fix WebGL?

Not sure why this works.
This commit is contained in:
iProgramInCpp
2023-12-26 01:35:02 +02:00
parent 7eae466865
commit aabfeeca71

View File

@@ -791,6 +791,10 @@ void Minecraft::init()
{
GetPatchManager()->LoadPatchData(platform()->getPatchData());
m_bIsTouchscreen = platform()->isTouchscreen();
m_pRakNetInstance = new RakNetInstance;
m_pTextures = new Textures(m_options, platform());
m_pTextures->addDynamicTexture(new WaterTexture);
m_pTextures->addDynamicTexture(new WaterSideTexture);
@@ -798,6 +802,13 @@ void Minecraft::init()
m_pTextures->addDynamicTexture(new LavaSideTexture);
m_pTextures->addDynamicTexture(new FireTexture(0));
if (platform()->hasFileSystemAccess())
m_options = new Options(m_externalStorageDir);
else
m_options = new Options();
_reloadInput();
m_pTextures->loadAndBindTexture(C_TERRAIN_NAME);
GetPatchManager()->PatchTextures(platform(), TYPE_TERRAIN);
m_pTextures->loadAndBindTexture(C_ITEMS_NAME);
@@ -805,17 +816,6 @@ void Minecraft::init()
GetPatchManager()->PatchTiles();
if (platform()->hasFileSystemAccess())
m_options = new Options(m_externalStorageDir);
else
m_options = new Options();
m_bIsTouchscreen = platform()->isTouchscreen();
_reloadInput();
m_pRakNetInstance = new RakNetInstance;
m_pSoundEngine = new SoundEngine(platform()->getSoundSystem());
m_pSoundEngine->init(m_options);