- small bugfix for lazy loading textures
This commit is contained in:
parent
62821793c0
commit
c442328b58
|
@ -206,6 +206,7 @@ void CoreData::loadTextureIfRequired(Texture2D **tex,string data_path,
|
||||||
itemLoadAttempted[texSystemId] = true;
|
itemLoadAttempted[texSystemId] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(attemptToLoadTexture == true) {
|
||||||
Renderer &renderer = Renderer::getInstance();
|
Renderer &renderer = Renderer::getInstance();
|
||||||
*tex = renderer.newTexture2D(rsGlobal);
|
*tex = renderer.newTexture2D(rsGlobal);
|
||||||
if (*tex) {
|
if (*tex) {
|
||||||
|
@ -237,6 +238,7 @@ void CoreData::loadTextureIfRequired(Texture2D **tex,string data_path,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
string CoreData::getDataPath() {
|
string CoreData::getDataPath() {
|
||||||
string data_path = getGameReadWritePath(GameConstants::path_data_CacheLookupKey);
|
string data_path = getGameReadWritePath(GameConstants::path_data_CacheLookupKey);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user