Commit ea1b7f39 authored by fallenstardust's avatar fallenstardust Committed by GitHub

Merge pull request #106 from rampageghost/master

Update game.cpp
parents 4a57eac0 b96c00cc
...@@ -207,6 +207,7 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) { ...@@ -207,6 +207,7 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) {
driver->setTextureCreationFlag(irr::video::ETCF_OPTIMIZED_FOR_QUALITY, true); driver->setTextureCreationFlag(irr::video::ETCF_OPTIMIZED_FOR_QUALITY, true);
imageManager.SetDevice(device); imageManager.SetDevice(device);
imageManager.ClearTexture();
if(!imageManager.Initial(workingDir)) if(!imageManager.Initial(workingDir))
return false; return false;
// LoadExpansions only load zips, the other cdb databases are still loaded by getDBFiles // LoadExpansions only load zips, the other cdb databases are still loaded by getDBFiles
...@@ -2092,4 +2093,4 @@ void Game::OnGameClose() { ...@@ -2092,4 +2093,4 @@ void Game::OnGameClose() {
android::onGameExit(appMain); android::onGameExit(appMain);
this->device->closeDevice(); this->device->closeDevice();
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment