Skip to content

Commit f7ea0cb

Browse files
committed
* Fix WebGL?
Not sure why this works.
1 parent f5f0ccc commit f7ea0cb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

source/client/app/Minecraft.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -791,30 +791,30 @@ void Minecraft::init()
791791
{
792792
GetPatchManager()->LoadPatchData(platform()->getPatchData());
793793

794+
m_bIsTouchscreen = platform()->isTouchscreen();
795+
796+
m_pRakNetInstance = new RakNetInstance;
797+
794798
m_pTextures = new Textures(m_options, platform());
795799
m_pTextures->addDynamicTexture(new WaterTexture);
796800
m_pTextures->addDynamicTexture(new WaterSideTexture);
797801
m_pTextures->addDynamicTexture(new LavaTexture);
798802
m_pTextures->addDynamicTexture(new LavaSideTexture);
799803
m_pTextures->addDynamicTexture(new FireTexture(0));
800804

801-
m_pTextures->loadAndBindTexture(C_TERRAIN_NAME);
802-
GetPatchManager()->PatchTextures(platform(), TYPE_TERRAIN);
803-
m_pTextures->loadAndBindTexture(C_ITEMS_NAME);
804-
GetPatchManager()->PatchTextures(platform(), TYPE_ITEMS);
805-
806-
GetPatchManager()->PatchTiles();
807-
808805
if (platform()->hasFileSystemAccess())
809806
m_options = new Options(m_externalStorageDir);
810807
else
811808
m_options = new Options();
812809

813-
m_bIsTouchscreen = platform()->isTouchscreen();
814-
815810
_reloadInput();
816811

817-
m_pRakNetInstance = new RakNetInstance;
812+
m_pTextures->loadAndBindTexture(C_TERRAIN_NAME);
813+
GetPatchManager()->PatchTextures(platform(), TYPE_TERRAIN);
814+
m_pTextures->loadAndBindTexture(C_ITEMS_NAME);
815+
GetPatchManager()->PatchTextures(platform(), TYPE_ITEMS);
816+
817+
GetPatchManager()->PatchTiles();
818818

819819
m_pSoundEngine = new SoundEngine(platform()->getSoundSystem());
820820
m_pSoundEngine->init(m_options);

0 commit comments

Comments
 (0)