mirror of
https://github.com/celisej567/mcpe.git
synced 2025-12-31 17:49:17 +03:00
* Fix WebGL?
Not sure why this works.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user