- small bugfix for lazy loading textures

This commit is contained in:
SoftCoder 2013-12-27 22:08:51 -08:00
parent 62821793c0
commit c442328b58

View File

@ -206,6 +206,7 @@ void CoreData::loadTextureIfRequired(Texture2D **tex,string data_path,
itemLoadAttempted[texSystemId] = true;
}
if(attemptToLoadTexture == true) {
Renderer &renderer = Renderer::getInstance();
*tex = renderer.newTexture2D(rsGlobal);
if (*tex) {
@ -237,6 +238,7 @@ void CoreData::loadTextureIfRequired(Texture2D **tex,string data_path,
}
}
}
}
string CoreData::getDataPath() {
string data_path = getGameReadWritePath(GameConstants::path_data_CacheLookupKey);