Commit b96c00cc authored by rampageghost's avatar rampageghost Committed by GitHub

Update game.cpp

bug fix:
while game exits with abnormal behavior, tMap list won't be freed.
parent 4a57eac0
......@@ -207,6 +207,7 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) {
driver->setTextureCreationFlag(irr::video::ETCF_OPTIMIZED_FOR_QUALITY, true);
imageManager.SetDevice(device);
imageManager.ClearTexture();
if(!imageManager.Initial(workingDir))
return false;
// LoadExpansions only load zips, the other cdb databases are still loaded by getDBFiles
......@@ -2092,4 +2093,4 @@ void Game::OnGameClose() {
android::onGameExit(appMain);
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